Opened 9 years ago

Closed 8 years ago

#2848 closed enhancement (fixed)

Fixed positioning for dialogs

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

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

comment:1 Changed 9 years ago by paul

Component: ui.coreui.dialog
Owner: paul deleted
Version: 1.5b4

comment:2 Changed 9 years ago by paul

Owner: set to scott.gonzalez
Status: newassigned

comment:3 Changed 9 years ago by Cloudream

Milestone: 1.6

comment:4 Changed 9 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 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"});
  $('.flora.ui-dialog').css({position:"fixed"});
  $(".ui-resizable").stop(function() {
    $(".flora.ui-dialog").css({position:"fixed"});
  });
)};

comment:6 Changed 9 years ago by Scott González

Milestone: 1.6TBD

comment:7 Changed 8 years ago by Jörn Zaefferer

Milestone: TBD1.next

comment:8 Changed 8 years ago by Scott González

Milestone: 1.next1.8
Resolution: fixed
Status: assignedclosed

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.