Opened 14 years ago

Last modified 8 years ago

#5777 closed enhancement

popups: close when window resized — at Version 3

Reported by: guest Owned by: bill
Priority: high Milestone: 1.9
Component: Dijit Version: 1.0
Keywords: popup moving place Cc: ben hockey
Blocked By: Blocking:

Description (last modified by bill)

I guess the problem is related to ticket #5776.

Some of the widgets use dijit.popup to show some content attached to the widget, e.g. TimeTextBox? shows _TimePicker. When you have the content of the page centered (or right-aligned I guess) resizing the browser window make all the page elements move. But the popups do not move, since they are positioned with:

// In dijit/base/_place.js:155-156 you can read:
node.style.left = best.x + "px";
node.style.top = best.y + "px";

In my opinion they should be somehow sticked to the parent widget, so that they move when the parents move.

Maybe some trick with position:relative would do the job?

Regards, Grzegorz Olędzki

Change History (3)

comment:1 Changed 14 years ago by bill

Milestone: 2.0
Owner: set to bill
Summary: Popups should be placed relatively to aroundNodespopups: close when window resized

I'd just like to close the popups when the window is resized. See also #4600.

comment:2 Changed 14 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:3 Changed 13 years ago by bill

Description: modified (diff)
Milestone: 1.31.4
Note: See TracTickets for help on using tickets.