on drag/resize, don't wrap dialog in box

This commit is contained in:
rolux 2015-02-12 09:44:47 +00:00
parent e533a13d52
commit 9fef3ccb67
2 changed files with 9 additions and 4 deletions

View file

@ -533,6 +533,7 @@ Dialog
cursor: nwse-resize;
}
/*
.OxDialogBox {
position: absolute;
left: 0;
@ -541,6 +542,7 @@ Dialog
bottom: 0;
overflow: hidden;
}
*/
/*
================================================================================

View file

@ -83,9 +83,12 @@ Ox.Dialog = function(options, self) {
self.$layer = Ox.Layer({type: 'dialog'});
}
/*
////
self.$box = $('<div>')
.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