Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#5137 closed enhancement (wontfix)

Re-positioning of dialog after resize event

Reported by: Rwhitbeck Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

Dialog doesn't reposition when viewport size is changed.

See forum: http://forum.jquery.com/topic/re-positioning-of-dialog-after-resize-event

Propose new option to configure dialog to reposition on viewport resize.

Change History (5)

comment:1 Changed 10 years ago by Scott González

Resolution: wontfix
Status: newclosed

This is extremely easy to implement yourself and isn't needed by the majority of users.

comment:2 Changed 10 years ago by Rwhitbeck

Copy code

  1. $( window ).resize(function() {
  2. $( "#dialog" ).dialog( "option", "position", $( "#dialog" ).dialog( "option", "position" ) );
  3. });

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

Milestone: TBD

Milestone TBD deleted

comment:4 Changed 7 years ago by Valentin Plamadeala

I think this was implemented in the last version, at least that's how it works, don't know if it was made on purpose

http://jsbin.com/ebahup/1/

comment:5 Changed 7 years ago by Scott González

Milestone: none

@omuleanu I'm not sure what you think was implemented. That jsbin example has a custom implemented window resize handler.

Note: See TracTickets for help on using tickets.