mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
r8147 보완
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8171 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8cf5f49ac0
commit
cf5e34d099
2 changed files with 14 additions and 12 deletions
|
|
@ -236,16 +236,18 @@ Xeed = xe.createApp('Xeed', {
|
|||
},
|
||||
|
||||
_onresize : function() {
|
||||
var $tb = this.$toolbar, $t1 = $tb.find('>.t1'), $t2 = $tb.find('>.t2'), $t1_mo, $t2_mo, base_top;
|
||||
|
||||
base_top = $t1.find('>ul').removeClass('_overflow').show().get(0).offsetTop;
|
||||
$t1_mo = $t1.find('>button.mo').hide();
|
||||
$.each($t1.find('>ul').get().reverse(), function(){
|
||||
if (this.offsetTop > base_top) {
|
||||
$(this).addClass('_overflow').hide();
|
||||
$t1_mo.show();
|
||||
}
|
||||
});
|
||||
var $tb = this.$toolbar, $t1 = $tb.find('>.t1'), $t2 = $tb.find('>.t2'), $t1_mo, $t2_mo, $t1_ul, base_top;
|
||||
|
||||
if ($t1.length && ($t1_ul=$t1.find('>ul')).length) {
|
||||
base_top = $t1_ul.removeClass('_overflow').show().get(0).offsetTop;
|
||||
$t1_mo = $t1.find('>button.mo').hide();
|
||||
$.each($t1.find('>ul').get().reverse(), function(){
|
||||
if (this.offsetTop > base_top) {
|
||||
$(this).addClass('_overflow').hide();
|
||||
$t1_mo.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
base_top = $t2.find('>ul').removeClass('_overflow').show().get(0).offsetTop;
|
||||
$t2_mo = $t2.find('>button.mo').hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue