diff --git a/source/UI/css/UI.css b/source/UI/css/UI.css index 97ee4442..8e1b48e9 100644 --- a/source/UI/css/UI.css +++ b/source/UI/css/UI.css @@ -533,6 +533,7 @@ Dialog cursor: nwse-resize; } +/* .OxDialogBox { position: absolute; left: 0; @@ -541,6 +542,7 @@ Dialog bottom: 0; overflow: hidden; } +*/ /* ================================================================================ diff --git a/source/UI/js/Window/Dialog.js b/source/UI/js/Window/Dialog.js index e3bd92c1..0d8ed1dd 100644 --- a/source/UI/js/Window/Dialog.js +++ b/source/UI/js/Window/Dialog.js @@ -83,9 +83,12 @@ Ox.Dialog = function(options, self) { self.$layer = Ox.Layer({type: 'dialog'}); } + /* + //// self.$box = $('
') .addClass('OxDialogBox') .css({zIndex: 11}); + */ self.$titlebar = Ox.Bar({ size: 24 @@ -244,7 +247,7 @@ Ox.Dialog = function(options, self) { y: event.clientY }; decenter(); - that.wrap(self.$box); + //// that.wrap(self.$box); } } @@ -267,7 +270,7 @@ Ox.Dialog = function(options, self) { function dragend(event) { if (!$(event.target).is('.OxButton')) { Ox.$body.removeClass('OxDragging'); - that.unwrap(); + //// that.unwrap(); } } @@ -359,7 +362,7 @@ Ox.Dialog = function(options, self) { self.$maximizeButton.toggle(); self.maximized = false; } - that.wrap(self.$box); + //// that.wrap(self.$box); } function resize(event) { @@ -528,7 +531,7 @@ Ox.Dialog = function(options, self) { function resizeend() { Ox.$body.removeClass('OxDragging'); - that.unwrap(); + //// that.unwrap(); that.triggerEvent('resizeend', { width: self.options.width, height: self.options.height