Ticket #2848 (closed enhancement: fixed)
Fixed positioning for dialogs
| Reported by: | hatapitk | Owned by: | scott.gonzalez |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.8 |
| Component: | ui.dialog | Version: | 1.5b4 |
| Keywords: | dialog position fixed | Cc: | |
| Blocking: | Blocked by: |
Description
It would be nice to have an option to use fixed positioning for dialogs. This is useful for non-modal dialogs that should remain within viewport and be accessible even when page is scrolled.
Change History
comment:1 Changed 5 years ago by paul
- Owner paul deleted
- Version set to 1.5b4
- Component changed from ui.core to ui.dialog
comment:2 Changed 5 years ago by paul
- Owner set to scott.gonzalez
- Status changed from new to assigned
comment:4 follow-up: ↓ 5 Changed 5 years ago by patrick
Hey!
Yep it would be nice indeed :D -- so while its not implemented yet, this might be a simple solution:
$(document).ready(function() { $('#myDialog').dialog({dialogClass: "flora"}); $('.flora.ui-dialog').css({position:"fixed"}); )};
works great for me
best regards, patrick
comment:5 in reply to: ↑ 4 Changed 5 years ago by patrick
Replying to patrick:
works great for me
this works only if the dialogs wont be resized! sry didnt realise this first!
but this could also be handled with the stop-function which is called at the end of the resize-operation:
$(document).ready(function() { $('#myDialog').dialog({dialogClass: "flora"}); $('.flora.ui-dialog').css({position:"fixed"}); $(".ui-resizable").stop(function() { $(".flora.ui-dialog").css({position:"fixed"}); }); )};
Note: See
TracTickets for help on using
tickets.

