fix a bug where the interface of a block video timeline would be stacked above a dialog

This commit is contained in:
rlx 2011-11-02 09:03:11 +00:00
parent 7747255ab8
commit dfe12646e6
3 changed files with 37 additions and 22 deletions

View file

@ -1867,7 +1867,7 @@ Video
width: 6px; width: 6px;
height: 6px; height: 6px;
margin-left: -3px; margin-left: -3px;
z-index: 10; z-index: 8;
} }
.OxLargeVideoTimeline .OxMarkerPointIn { .OxLargeVideoTimeline .OxMarkerPointIn {
position: absolute; position: absolute;
@ -1875,14 +1875,14 @@ Video
width: 7px; width: 7px;
height: 7px; height: 7px;
margin-left: -6px; margin-left: -6px;
z-index: 10; z-index: 8;
} }
.OxLargeVideoTimeline .OxMarkerPointOut { .OxLargeVideoTimeline .OxMarkerPointOut {
position: absolute; position: absolute;
top: 63px; top: 63px;
width: 7px; width: 7px;
height: 7px; height: 7px;
z-index: 10; z-index: 8;
} }
.OxLargeVideoTimeline .OxMarkerPosition { .OxLargeVideoTimeline .OxMarkerPosition {
position: absolute; position: absolute;
@ -1890,7 +1890,7 @@ Video
width: 11px; width: 11px;
height: 11px; height: 11px;
margin-left: -5px; margin-left: -5px;
z-index: 10; z-index: 8;
} }
.OxLargeVideoTimeline .OxSubtitle { .OxLargeVideoTimeline .OxSubtitle {
position: absolute; position: absolute;
@ -1906,7 +1906,7 @@ Video
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
cursor: default; cursor: default;
overflow: hidden; overflow: hidden;
z-index: 10; z-index: 8;
-moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
-o-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); -o-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
@ -1932,6 +1932,11 @@ Video
margin-top: 1px; margin-top: 1px;
} }
.OxSmallVideoTimeline .OxInterface,
.OxBlockVideoTimeline .OxInterface {
position: absolute;
z-index: 9;
}
.OxSmallVideoTimeline .OxMarkerPlay { .OxSmallVideoTimeline .OxMarkerPlay {
position: absolute; position: absolute;
width: 14px; width: 14px;
@ -1960,7 +1965,7 @@ Video
width: 7px; width: 7px;
height: 7px; height: 7px;
margin-left: -2px; margin-left: -2px;
z-index: 10; z-index: 8;
} }
.OxSmallVideoTimeline .OxMarkerPointIn { .OxSmallVideoTimeline .OxMarkerPointIn {
top: 15px; top: 15px;
@ -1971,7 +1976,7 @@ Video
width: 7px; width: 7px;
height: 7px; height: 7px;
margin-left: 4px; margin-left: 4px;
z-index: 10; z-index: 8;
} }
.OxSmallVideoTimeline .OxMarkerPointOut { .OxSmallVideoTimeline .OxMarkerPointOut {
top: 15px; top: 15px;
@ -1981,7 +1986,7 @@ Video
position: absolute; position: absolute;
width: 11px; width: 11px;
height: 11px; height: 11px;
z-index: 10; z-index: 8;
} }
.OxSmallVideoTimeline .OxMarkerPosition { .OxSmallVideoTimeline .OxMarkerPosition {
top: 2px; top: 2px;

View file

@ -95,14 +95,20 @@ Ox.Input = function(options, self) {
value: '', value: '',
width: 128 width: 128
}) })
.options(options) .options(options || {})
.addClass( .addClass(
'OxInput OxMedium Ox' + Ox.toTitleCase(self.options.style) /*+ ( 'OxInput OxMedium Ox' + Ox.toTitleCase(self.options.style) /*+ (
self.options.overlap != 'none' ? self.options.overlap != 'none' ?
' OxOverlap' + Ox.toTitleCase(self.options.overlap) : '' ' OxOverlap' + Ox.toTitleCase(self.options.overlap) : ''
)*/ )*/
) )
.css({width: self.options.width + 'px'}) .css(
Ox.extend({
width: self.options.width + 'px'
}, self.options.type == 'textarea' ? {
height: self.options.height + 'px'
} : {})
)
.bindEvent(Ox.extend(self.options.type == 'textarea' ? { .bindEvent(Ox.extend(self.options.type == 'textarea' ? {
key_shift_enter: submit key_shift_enter: submit
} : { } : {
@ -113,10 +119,10 @@ Ox.Input = function(options, self) {
})); }));
if ( if (
Ox.isArray(self.options.autocomplete) && Ox.isArray(self.options.autocomplete)
self.options.autocompleteReplace && && self.options.autocompleteReplace
self.options.autocompleteReplaceCorrect && && self.options.autocompleteReplaceCorrect
self.options.value === '' && self.options.value === ''
) { ) {
self.options.value = self.options.autocomplete[0] self.options.value = self.options.autocomplete[0]
} }
@ -211,18 +217,24 @@ Ox.Input = function(options, self) {
disabled: self.options.disabled, disabled: self.options.disabled,
type: self.options.type == 'password' ? 'password' : 'text' type: self.options.type == 'password' ? 'password' : 'text'
}) })
.css(Ox.extend({ .css(
width: self.inputWidth + 'px', Ox.extend({
textAlign: self.options.textAlign width: self.inputWidth + 'px',
}, self.options.type == 'textarea' ? { textAlign: self.options.textAlign
height: self.options.height + 'px', }, self.options.type == 'textarea' ? {
} : {})) height: self.options.height + 'px',
} : {})
)
.val(self.options.value) .val(self.options.value)
.blur(blur) .blur(blur)
.change(change) .change(change)
.focus(focus) .focus(focus)
.appendTo(that.$element); .appendTo(that.$element);
if (self.options.type == 'textarea') {
Ox.print('TEXTAREA', self.options.width, self.options.height, '...', that.css('width'), that.css('height'), '...', self.$input.css('width'), self.$input.css('height'))
}
// fixme: is there a better way than this one? // fixme: is there a better way than this one?
// should at least go into ox.ui.theme.foo.js // should at least go into ox.ui.theme.foo.js
// probably better: divs in the background // probably better: divs in the background

View file

@ -44,12 +44,10 @@ Ox.SmallVideoTimeline = function(options, self) {
}) })
.addClass('OxInterface') .addClass('OxInterface')
.css({ .css({
position: 'absolute',
left: self.interfaceLeft + 'px', left: self.interfaceLeft + 'px',
top: self.interfaceTop + 'px', top: self.interfaceTop + 'px',
width: self.interfaceWidth + 'px', width: self.interfaceWidth + 'px',
height: '20px', height: '20px',
zIndex: 11
}) })
.bind({ .bind({
mousedown: mousedown mousedown: mousedown