1
0
Fork 0
forked from 0x2620/oxjs

some fixes for map, range and videopreview

This commit is contained in:
rlx 2011-09-30 10:34:33 +00:00
commit c6d67420a8
6 changed files with 88 additions and 37 deletions

View file

@ -145,6 +145,7 @@ Ox.SplitPanel = function(options, self) {
css[self.edges[1]] = (
self.length == 3 ? getVisibleSize(self.options.elements[2]) : 0
) + 'px';
Ox.print('i==1 CSS', css)
} else {
if (element.size == 'auto') {
css[self.edges[0]] = getVisibleSize(self.options.elements[0])
@ -169,6 +170,7 @@ Ox.SplitPanel = function(options, self) {
} else {
self.$resizebars[i == 0 ? 0 : 1].css(css);
}
self.$resizebars[i == 0 ? 0 : 1].options({size: element.size});
}
});
@ -247,7 +249,7 @@ Ox.SplitPanel = function(options, self) {
size <f> Get or set size of an element
(id) -> <i> Returns size
(id, size) -> <o> Sets size, returns SplitPanel
(id, size, animate) -> <o> Sets size with animation, returns SplitPanel
(id, size, callback) -> <o> Sets size with animation, returns SplitPanel
id <i> The element's id or position
size <i> New size, in px
callback <b|f> Callback function (passing true animates w/o callback)