fixing timeline view window resize

This commit is contained in:
rolux 2010-12-23 17:05:46 +00:00
parent eb62b5f6c7
commit c11a4e74fe
2 changed files with 32 additions and 2 deletions

View File

@ -1124,6 +1124,21 @@ Panels
margin: 1px 0 0 0; margin: 1px 0 0 0;
font-weight: bold; font-weight: bold;
} }
.OxCollapsePanel > .OxBar > .OxSelect {
position: absolute;
right: 0px;
width: 14px;
height: 16px;
border-width: 0 0 0 1px;
background: rgba(0, 0, 0, 0);
font-size: 11px;
text-align: center;
cursor: pointer;
overflow: hidden;
-moz-border-radius: 0;
-webkit-border-radius: 0;
}
.OxCollapsePanel > .OxContent { .OxCollapsePanel > .OxContent {
position: relative; position: relative;
left: 0; left: 0;

View File

@ -4292,7 +4292,7 @@ requires
return that; return that;
} };
Ox.FormElementGroup = function(options, self) { Ox.FormElementGroup = function(options, self) {
@ -4346,7 +4346,7 @@ requires
return that; return that;
} };
Ox.Picker = function(options, self) { Ox.Picker = function(options, self) {
@ -8823,6 +8823,7 @@ requires
that = new Ox.Panel({}, self) that = new Ox.Panel({}, self)
.defaults({ .defaults({
collapsed: false, collapsed: false,
menu: [],
size: 16, size: 16,
title: '' title: ''
}) })
@ -8849,6 +8850,17 @@ requires
.addClass('OxTitle') .addClass('OxTitle')
.html(self.options.title/*.toUpperCase()*/) .html(self.options.title/*.toUpperCase()*/)
.appendTo($titlebar); .appendTo($titlebar);
if (self.options.menu.length) {
that.$menu = new Ox.Select({
id: self.options.id + 'Menu',
items: self.options.menu,
max: 0,
min: 0,
type: 'image'
})
.bindEvent('click', clickMenu)
.appendTo($titlebar)
}
that.$content = new Ox.Element() that.$content = new Ox.Element()
.addClass('OxContent') .addClass('OxContent')
.appendTo(that); .appendTo(that);
@ -8858,6 +8870,9 @@ requires
that.$content.css({ that.$content.css({
marginTop: -that.$content.height() + 'px' marginTop: -that.$content.height() + 'px'
}); });
}
function clickMenu() {
} }
function dblclickTitlebar(e) { function dblclickTitlebar(e) {
if (!$(e.target).hasClass('OxButton')) { if (!$(e.target).hasClass('OxButton')) {