Opened 9 years ago

Closed 7 years ago

#2848 closed enhancement (fixed)

Fixed positioning for dialogs

Reported by: hatapitk Owned by: scottgonzalez
Priority: minor Milestone: 1.8
Component: ui.dialog Version: 1.5b4
Keywords: dialog position fixed Cc:
Blocked by: Blocking:


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 (8)

comment:1 Changed 9 years ago by paul

  • Component changed from ui.core to ui.dialog
  • Owner paul deleted
  • Version set to 1.5b4

comment:2 Changed 9 years ago by paul

  • Owner set to scott.gonzalez
  • Status changed from new to assigned

comment:3 Changed 9 years ago by Cloudream

  • Milestone set to 1.6

comment:4 follow-up: Changed 9 years ago by patrick


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"});

works great for me

best regards, patrick

comment:5 in reply to: ↑ 4 Changed 9 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"});
  $(".ui-resizable").stop(function() {

comment:6 Changed 9 years ago by scottgonzalez

  • Milestone changed from 1.6 to TBD

comment:7 Changed 8 years ago by jzaefferer

  • Milestone changed from TBD to

comment:8 Changed 7 years ago by scottgonzalez

  • Milestone changed from to 1.8
  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r3132. The problem still exists with resizing, but this is not actually a dialog-related issue (see #3628).

Note: See TracTickets for help on using tickets.