Ticket #2848 (closed enhancement: fixed)

Opened 7 years ago

Last modified 5 years ago

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 6 years ago by paul

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

comment:2 Changed 6 years ago by paul

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

comment:3 Changed 6 years ago by Cloudream

  • Milestone set to 1.6

comment:4 follow-up: ↓ 5 Changed 6 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 6 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 6 years ago by scott.gonzalez

  • Milestone changed from 1.6 to TBD

comment:7 Changed 6 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.next

comment:8 Changed 5 years ago by scott.gonzalez

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

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.