Window.resizeTo in addon (overlay commonDialog) does not resize after some minimum size in FF v17 & 18
I created an addon which overlay commonDialog.xul.
In the load event, window.resizeTo is called and set to a very small size (like 10x10) so it is almost invisible to users.
This works fine in FF 15. After upgrading to FF 17 or FF 18, this stops working.
When I set the size big, it works fine. When setting it to a small size, it seems like when hitting a limit, the window size stays the same. The window size is the same when setting to 10x10 or 100x100.
This is on a MAC, but same behavior is observed on Windows too.
It seems like there is a minimum size predefined and the window does not get smaller than that.
Aren't we supposed to be able to resize the window as we wish in the addon?
If you create your own window with a unique ID then it should be possible to create more specific CSS rules for that window.
How (when) do you resize that window when you need it to show with the default dimensions?
If you have specific questions about developing extensions then it is best to ask advice at the MozillaZine Extension Development forum.
*http://forums.mozillazine.org/viewforum.php?f=19
The helpers at that forum are more knowledgeable.<br>
You need to register at the MozillaZine forum site in order to post at that forum.
Similar Messages
-
Site does not load after some minutes of creation or after restart the server
Hello,
I have been asked to create a test enviroment identical to the production enviroment. So, what I did was:
Backed up the production web application's content database: Prod_WSS_ContentDB
Created new test servers (domain controller, sql server and sharepoint 2013 server) in a new, completely isolated, network environment, without any connection with the production environment (specifically Azure)
Created a new web application in test environment with a new content database.
Dismounted the new content database with powershell: Dismount-spcontentdatabase Test_WSS_Content
Copy the Prod_WSS_ContentDB database to the test sql server and restored it with Management Studio.
Mount the Prod_WSS_ContentDB databe to the web application with powershell:
Mount-spcontentdatabse Prod_WSS_ContentDB -WebApplication http://testsp/
Then, when I type http://testsp in the browser it redirects me to http://testsp/SitePages/Home.aspx
and the site loads exactly as the production environment.
But, after some minutes, or if I restart the Sharepoint Server, when I navigate to
http://sitesp I am redirected to http://testsp/SitePages/Home.aspx
as expected, but the site does not load, the browser just show a complety blank page.
The Central Administration site loads normally.
Trying to fix it I found that if I dismount the content database Prod_WSS_ContentDB, then mount the test database Test_WSS_Content,
then navigate to the site, dismount Test_WSS_Content and finally mount again Prod_WSS_ContentDB, the site loads normally, no blank page, but after some minutes or if I restart the same happens again.
For the error event I receice in event viewer it seems that the problem is related to database. I have not found a solution for this error... How can I solve this?
The error is:
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Date: 6/27/2014 2:44:22 PM
Event ID: 5586
Task Category: Database
Level: Error
Keywords:
User: UCETEST\spaccount
Computer: TESTSP01.ucetest.edu.do
Description:
Unknown SQL Exception -2146893055 occurred. Additional error information from SQL Server is included below.
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The handle specified is invalid)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
<EventID>5586</EventID>
<Version>15</Version>
<Level>2</Level>
<Task>3</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2014-06-27T14:44:22.743159500Z" />
<EventRecordID>4742</EventRecordID>
<Correlation />
<Execution ProcessID="1688" ThreadID="1692" />
<Channel>Application</Channel>
<Computer>TESTSP01.ucetest.edu.do</Computer>
<Security UserID="S-1-5-21-2552298216-324766354-3392103171-1108" />
</System>
<EventData>
<Data Name="int0">-2146893055</Data>
<Data Name="string1">A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The handle specified is invalid)</Data>
</EventData>
</Event>
Melvintt
MCTS, Windows Server 2008 R2: Network Infrastructure
MCTS, Windows Server 2008 R2: Active Directory, ConfiguringHi,
According to your post, my understanding is that Site does not load after some minutes of creation or after restart the server.
Please make sure you create a test environment for existing production site correctly.
Here are some great articles for your reference:
Moving content between SharePoint environments
Copy SharePoint production data to a test environment
Build a SharePoint 2010 Test/Development Farm
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Hello Linda Li,
I follwed that steps to create my test enviroment... and I have recreated it some times using that same steps, but the problem persits. After some minutes or after I restart the SharePoint server the site does not load.
Melvintt
MCTS, Windows Server 2008 R2: Network Infrastructure
MCTS, Windows Server 2008 R2: Active Directory, Configuring -
Bug: View does not resize after soft keyboard dismissal
On Android when resizeForSoftKeyboard=true, the view does not resize after dismissing the soft keyboard. This simple app demonstrates the bug.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
applicationDPI="160"
resizeForSoftKeyboard="true"
applicationComplete="applicationComplete()">
<fx:Script>
<![CDATA[
private function applicationComplete():void {
keywordTextInput.setFocus();
private function keywordTextInputEnter():void {
stage.focus = null;
]]>
</fx:Script>
<s:Rect id="rect1" width="100%" height="100%">
<s:stroke>
<s:SolidColorStroke color="#FF0000" weight="4"/>
</s:stroke>
</s:Rect>
<s:TextInput id="keywordTextInput" enter="keywordTextInputEnter()" returnKeyLabel="go"/>
</s:Application>
1) Start app.
2) Click on the "go" button on the soft keyboard
I observe that the red rectangle remains the same size (about half the screen). I expect the red rectangle to resize to fill the entire screen as it does on iOS.
My environment:
Flash Builder 4.7 beta
Flex 4.6.0
AIR 3.4
ASUS Transformer (Android 4.0.3)Submitted bug:
https://bugbase.adobe.com/index.cfm?event=bug&id=3657721 -
"show my windows and tabs from last time" does not work after upgrade to 8.01
After I upgraded to the latest v8.01 I have lost all my tabbed sites and even when trying to add them and save them with the Tools>Options>General>Start up>when Firefox starts selected feature "show my windows and tabs from last time" it does not hold the saved sites and when browser is restarted it always loses all the tabs and only shows one tab with Firefox home webpage. I need to have several sites open to work and the only way to do that now is to make sure I click the "Use current pages" under General Option in Tools. It is getting very annoying because I keep changing my tabs to different websites during a session and I am used to just closing the browser, relying on having them all back in when restarting Firefox.
Make sure that you do not use Clear Recent History to clear the <i>Browsing History</i> when you close Firefox.
*https://support.mozilla.com/kb/Clear+Recent+History
*https://support.mozilla.com/kb/Firefox+does+not+ask+to+save+tabs+and+windows+on+exit
It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
* Help > Troubleshooting Information > Profile Directory: Open Containing Folder
* http://kb.mozillazine.org/Profile_folder_-_Firefox
Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
See also:
* [1] http://kb.mozillazine.org/Session_Restore
* [2] http://kb.mozillazine.org/sessionstore.js
* [3] http://kb.mozillazine.org/Multiple_profile_files_created -
Windows 10 - No sound and mediaplayer does not work after upgrade
Hi !I can't get the sound to work after upgrade to win 10, - and windows mediaplayer will not openmp3's -- I get video on the VLC - but no sound... If anybody can help me, - please post a direct link to the driver I have toreinstall.. Thanks CarstenNorway
Thanks for the answer- but I mangage to solve the problem my self this time... I just did go to controlpanel - and clicked right button on the mouse - and updated both sound drivers thatI did find in there. After restart of the lap - everything worked ut well.. I am supprized !! Carsten
-
MBA 11 (2013) pinch zoom does not work after some time, how to fix it ?
Recently I purchased MBA 11 (2013) model ( 4GB ram & 1.3 Ghz dual core). Although I use iPhone 5 & iPad 4 but never used mac. So when I found the track pad is capable of pinch zoom(along with other gesture) I was excited. But later I found after opening few apps (like safari, chrome etc) pinch zoom stop working . I need to restart in order to make it work again. Other gestures works fine just issue with the pinch zoom. Along with this issue I have some other questions as well
1) How to fix this pinch zoom issue?
2) I use eclipse for android development, but when I connect android phone/tablet - os crashes, no idea why?
3) How to uninstall & update apps properly which was downloaded from web (like I installed x-code) ?
4) I want to use mouse (i am comfortable) - I need to know whether right click, wheel, ling click & drag works perfectly.
5) How to back up the os if something goes wrong I can retrieve from there ?Error 2, 4 (or -4), 6, 40, 1000, 9006
Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
Verify that access to ports 80 and 443 are allowed on your network.
Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps underAdvanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
Restore your device while connected to a different network.
Restore using a different computer.
http://support.apple.com/kb/TS3694#error6 -
After updating iTunes this week Windows 8 recognizes the iPod but does not offer an option to open with iTunes. iTunes does not recognize iPod Touch. Have followed all the steps but without success. Is there a solution with iTunes?
I followed all the instructions on the suggested page. Many files in C:\Program Files\Common Files\Apple\ and C:\Program Files (x86)\Common Files\Apple\ could not be deleted. Message said ""Cannot delete files: It is being used by another person or program"' but could not find iPodService.exe in task manager (also, the "Cannont delete ... " did not mention iPodService.exe).
Deleted all that I could. Reinstalled iTunes. Still same result. iTunes and computer both recognize my old iPod. Only the computer recognizes iPod Touch. -
HP Color LaserJet CP2025 / Windows 7(64bit)-Why the printer does not print color letters??
Could be a lot of reasons. First try to print a supplies status page- If that prints with color on it, you have a driver problem.
-
I have just upgraded from Elements/Premiere elements 11 to version 12. I am running on a PC with Windows 7. When I try to run video from the existing catalogue or video newly imported I get a window stating "....system does not have the required compressor/decompressor (codec) installed" Where has it gone? Where do I get a new one? I am getting REALLY REALLY fed up with trying to find an answer!!!!!!!!
Try to disable hardware acceleration in Firefox.
*Firefox > Preferences > Advanced > General > Browsing: "Use hardware acceleration when available"
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Node Container that does not resize with Window Resize Event
Hello,
I'm not new to Java but I am new to JavaFX.
I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
So I was playing around with that but I have two issues.
1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
public class Test extends Application
Scene mainScene;
Group root;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
root.getChildren().add(rect);
x = x + 100;
public void start(Stage primaryStage)
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + 0.01);
pane.setScaleY(pane.getScaleY() + 0.01);
else
pane.setScaleX(pane.getScaleX() - 0.01);
pane.setScaleY(pane.getScaleY() - 0.01);
pane.getChildren().addAll(root);
pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
@Override
public void handle(MouseEvent event)
System.out.println(event.getButton());
if(event.getButton().equals(MouseButton.PRIMARY))
System.out.println("primary button");
final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
.node(pane)
.duration(Duration.seconds(10))
.fromAngle(0)
.toAngle(360)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(false)
.build();
rotateTransition2.play();
mainScene = new Scene(pane, 400, 400);
primaryStage.setScene(mainScene);
primaryStage.show();
}Edited by: 953596 on 19.08.2012 12:03To answer my own Question, it depends how you add childs.
It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
root.getChildren().add(pane);and it will stay the size even if the window is resized.
Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
import javafx.animation.Animation;
import javafx.animation.ParallelTransition;
import javafx.animation.ParallelTransitionBuilder;
import javafx.animation.RotateTransition;
import javafx.animation.RotateTransitionBuilder;
import javafx.animation.ScaleTransitionBuilder;
import javafx.animation.Timeline;
import javafx.animation.TranslateTransitionBuilder;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;
import javafx.scene.input.ScrollEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;
public class Test extends Application
Stage primStage;
Scene mainScene;
Group root;
Pane masterPane;
Point2D dragAnchor;
double initX;
double initY;
public static void main(String[] args)
launch(args);
@Override
public void init()
root = new Group();
final Pane pane = new Pane();
pane.setStyle("-fx-background-color: #CCFF99");
pane.setOnScroll(new EventHandler<ScrollEvent>()
@Override
public void handle(ScrollEvent se)
if(se.getDeltaY() > 0)
pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
else
pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
System.out.println(pane.getScaleX() + " " + pane.getScaleY());
pane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
initX = pane.getTranslateX();
initY = pane.getTranslateY();
dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
pane.setOnMouseDragged(new EventHandler<MouseEvent>()
public void handle(MouseEvent me) {
double dragX = me.getSceneX() - dragAnchor.getX();
double dragY = me.getSceneY() - dragAnchor.getY();
//calculate new position of the pane
double newXPosition = initX + dragX;
double newYPosition = initY + dragY;
//if new position do not exceeds borders of the rectangle, translate to this position
pane.setTranslateX(newXPosition);
pane.setTranslateY(newYPosition);
int x = 0;
int y = -100;
for(int i = 0; i < 5; i++)
x = 0;
y = y + 100;
for (int j = 0; j < 5; j++)
final Rectangle rect = new Rectangle(x, y, 30 , 30);
final RotateTransition rotateTransition = RotateTransitionBuilder.create()
.node(rect)
.duration(Duration.seconds(4))
.fromAngle(0)
.toAngle(720)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
rect.setOnMouseClicked(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
rotateTransition.setToAngle(0);
rotateTransition.stop();
rect.setFill(Color.BLACK);
rect.setScaleX(1.0);
rect.setScaleY(1.0);
else
rect.setFill(Color.AQUAMARINE);
rect.setScaleX(2.0);
rect.setScaleY(2.0);
rotateTransition.play();
pane.getChildren().add(rect);
x = x + 100;
pane.autosize();
pane.setPrefSize(pane.getWidth(), pane.getHeight());
pane.setMaxSize(pane.getWidth(), pane.getHeight());
root.getChildren().add(pane);
masterPane = new Pane();
masterPane.getChildren().add(root);
masterPane.setStyle("-fx-background-color: #AABBCC");
masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
public void handle(MouseEvent me)
System.out.println(me.getButton());
if((MouseButton.MIDDLE).equals(me.getButton()))
double screenWidth = masterPane.getWidth();
double screenHeight = masterPane.getHeight();
System.out.println("screenWidth " + screenWidth);
System.out.println("screenHeight " + screenHeight);
System.out.println(screenHeight);
double scaleXIs = pane.getScaleX();
double scaleYIs = pane.getScaleY();
double paneWidth = pane.getWidth() * scaleXIs;
double paneHeight = pane.getHeight() * scaleYIs;
double screenCalc = screenWidth > screenHeight ? screenHeight : screenWidth;
double scaleOperator = screenCalc / paneWidth;
double moveToX = (screenWidth/2) - (paneWidth/2);
double moveToY = (screenHeight/2) - (paneHeight/2);
System.out.println("movetoX :" + moveToX);
System.out.println("movetoY :" + moveToY);
//double scaleYTo = screenHeight / paneHeight;
ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
.node(pane)
.children(
TranslateTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(moveToX)
.toY(moveToY)
.build()
ScaleTransitionBuilder.create()
.duration(Duration.seconds(2))
.toX(scaleOperator)
.toY(scaleOperator)
.build()
.build();
parallelTransition.play();
public void start(Stage primaryStage)
primStage = primaryStage;
mainScene = new Scene(masterPane, 430, 430);
primaryStage.setScene(mainScene);
primaryStage.show();
} -
I have created a PDF with mp3 audio clips, the file works on PC's with audio playback (WIndows 7, 8 ) however the audio does not play when hosted on a website or an ipad/tablet computer or smart phone when used with PDF reader
adobe42135678 wrote:
the audio does not play when hosted on a website...
When viewing in what browser? -
I have tried installing the older version Firefox 3.6. After entering the URL on address bar it does not load after pressing enter or CTRL+ENTER
This issue can be caused by an extension (AVG Safe Search can cause this) that isn't working properly.
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
* [[Troubleshooting extensions and themes]]
In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
* Help > Restart with Add-ons Disabled
* Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows) -
I installed Windows 8 and now my ipad does not show in itunes...any thoughts?
Not trying to start any argument here, but if you would have checked the requirements for using an iPad with iTunes on a computer, you would have seen that Windows 8 is not supported.
Apple ID (required for some features)
Internet access6
Syncing with iTunes on a Mac or PC requires:
Mac: OS X v10.6.8 or later
PC: Windows 7; Windows Vista; or Windows XP Home or Professional with Service Pack 2 or later
Download iTunes at www.itunes.com/download
http://www.apple.com/ipad/specs/ -
Windows xp runs java application but does not compile it - urgent please
Hi
My new PC(portable) does not compile my java progran:
'javac' is not recognized as an internal or external command, operatable program or batch file.
If you have any suggestion, please let me know!
AriaThanks anyhow;
The following information is sent to beginners site.
I have talked to british, belgian and others regarding this problem. They said it is very expensive and we laughed.
Hi,
Windows XP runs java application but does not compile it. I get following message:
'javac' is not recognized as an internal or external command, operatable program or batch file.
MS-DOS does not exists but a command line edits autoexec.nt having allinformation regarding installed jdk5. I run my java applicat
ion from here. But no compilation.
Environment variables has following information.
JAVA_HOME C:\jdk5.0
CLASSPATH C:\jdk5.0\myPrograms
path %JAVA_HOME%bin
All information in autoexec.nt exists as windows 98 and I run it from command line.
Would you please tell me what is wrong?
Thanks
Aria -
I have instaled creative clouds, but when i open, my creative cloud shows empty window. I have reinstaled, and does not help.
follow solution 2 here, CC desktop lists applications as "Up to Date" when not installed
Maybe you are looking for
-
I began having problems with my iphone 5 after I updated to ios7. It began having several issues e.g. freezing, turning on and off by itself and the home button was not responding. It is a long story because I had to talk to apple reps etc. to make a
-
Hi, My screen on my ipod mini is black with small dots. It looks like space. Does anyone have any suggestions, please? Thank you. Cindy
-
WHAT IS THE DIFFERENCE BETWEEN THE APPLE IPOD V2 AND THE NORMAL IPOD?
I have just seen this in the argos book and i was a bit confused, its the same price.... Apple ipod v2 video 30gb apple ipod video 30gb Hope somebody can help! Lou
-
When I try to share a project with itunes I receive an error code -47. If I restart my computer and then open a project without making any changes to it, I can share that project with itunes. However, if I then open another project and try to share t
-
Hi, here is the problem I have n number of playing cards in a table (say 5). I want to find all the possible combinations and store then so that I can delete a particular card from the table. example. cards are 1, 2, 3, j, k combinations are are 1,2,