fix collapsepanel
This commit is contained in:
parent
038493d52b
commit
0c6541363d
1 changed files with 4 additions and 7 deletions
|
@ -73,7 +73,7 @@ Ox.CollapsePanel = function(options, self) {
|
||||||
if (self.options.collapsed) {
|
if (self.options.collapsed) {
|
||||||
that.$content.css({
|
that.$content.css({
|
||||||
marginTop: -that.$content.height() + 'px'
|
marginTop: -that.$content.height() + 'px'
|
||||||
});
|
}).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function doubleclickTitlebar(e) {
|
function doubleclickTitlebar(e) {
|
||||||
|
@ -88,12 +88,9 @@ Ox.CollapsePanel = function(options, self) {
|
||||||
var marginTop;
|
var marginTop;
|
||||||
self.options.collapsed = !self.options.collapsed;
|
self.options.collapsed = !self.options.collapsed;
|
||||||
marginTop = self.options.collapsed ? -that.$content.height() : 0;
|
marginTop = self.options.collapsed ? -that.$content.height() : 0;
|
||||||
if (!self.options.collapsed) {
|
!self.options.collapsed && that.$content.css({
|
||||||
that.css({
|
marginTop: -that.$content.height() + 'px'
|
||||||
marginTop: -that.$content.height() + 'px'
|
}).show();
|
||||||
});
|
|
||||||
that.$content.show();
|
|
||||||
}
|
|
||||||
that.$content.animate({
|
that.$content.animate({
|
||||||
marginTop: marginTop + 'px'
|
marginTop: marginTop + 'px'
|
||||||
}, 250, function() {
|
}, 250, function() {
|
||||||
|
|
Loading…
Reference in a new issue