Closed Bug 500826 Opened 16 years ago Closed 10 years ago

does panel widget's autoPosition property works?

Categories

(Toolkit Graveyard :: XULRunner, defect)

1.9.1 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: daniel.fe, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 Build Identifier: XulRunner 1.9.1 While working with an always visible <panel> (noautohide="true") I was trying to get rid of the default behaviour of a <panel> to always reposition itself to be always visible when it's parent window is moved (I don't want this repositioning to happen). I found an autoPosition property and decide to give it a try, I found a couple of things that made me file this bug. Reproducible: Always Steps to Reproduce: Considering the following piece XUL code: ... <panel id="top" noautohide="true"> <vbox id="top_menubar"> <toolbarbutton id="choose_group" label="Home" menu="popup_groups" /> </vbox> </panel> ... Actual Results: If you put the following js sentences the panel will be displayed: let toppanel = document.getElementById('top'); toppanel.openPopupAtScreen(window.screenX, window.screenY, false); toppanel.autoPosition = false; // <-- at this point coordinate set in previous sentence is lost, panel will be rendered at (0, 0) of main window from now on. toppanel.moveTo(400, 200); // <-- this is ignored and any attempt to change panel's position will be ignored too (with means like setting css margins, top, left props for example) placing toppanel.autoPosition=false before opening the panel does not seems to do anything either, moveTo sentence is ignored too. Expected Results: I was under the impresion that autoPosition=false would allow me to position the panel freely (that is, without any automatic positioning triggering) but that wasn't the case. I wonder what is the intended usage of this property. I think autopositioning of panels is a good thing but it showld also be a way to disabled default behaviour. As a sidenote I'm working with a title-less window and I'm trying to do a toolbar which includes a custom titlebar and buttons above the main window. It actually works as long as you stay away from the screen edges (which triggers a rather annoying autoposition dance in the panel).
Version: unspecified → 1.9.1 Branch
XULRunner has been removed from the Mozilla tree: see https://groups.google.com/forum/#!topic/mozilla.dev.platform/_rFMunG2Bgw for context. I am closing all the bugs currently in the XULRunner bugzilla component, in preparation for moving this component to the graveyard. If this bug is still valid in a XULRunner-less world, it will need to be moved to a different bugzilla component to be reopened.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.