Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 1, 2014
1 parent 2673cd5 commit 32f1cfe
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions imp/js/viewport.js
Expand Up @@ -474,7 +474,7 @@ var ViewPort = Class.create({
_onResize: function(size)
{
var c_opts = {},
h = this.opts.list_header ? this.opts.list_header.getHeight() : 0,
h = this.opts.list_header ? this.opts.list_header.getHeight() : 0,
lh = this._getLineHeight(),
sp = this.split_pane;

Expand Down Expand Up @@ -505,7 +505,9 @@ var ViewPort = Class.create({
});
this.opts.content.setStyle({ width: 'auto' });
sp.currbar.show();
this.opts.pane_data.show().setStyle({ height: Math.max(document.viewport.getHeight() - this.opts.pane_data.viewportOffset()[1], 0) + 'px' });
this.opts.pane_data.show().setStyle({
height: Math.max(document.viewport.getHeight() - this.opts.pane_data.viewportOffset()[1], 0) + 'px'
});
break;

case 'vert':
Expand All @@ -525,8 +527,12 @@ var ViewPort = Class.create({
height: h + 'px'
});
this.opts.content.setStyle({ width: sp.vert.width + 'px' });
sp.currbar.setStyle({ height: h - sp.currbar.getLayout().get('border-bottom') + 'px' }).show();
this.opts.pane_data.setStyle({ height: h - this.opts.pane_data.getLayout().get('border-bottom') + 'px' }).show();
sp.currbar.setStyle({
height: h - sp.currbar.getLayout().get('border-bottom') + 'px'
}).show();
this.opts.pane_data.setStyle({
height: h - this.opts.pane_data.getLayout().get('border-bottom') + 'px'
}).show();
break;

default:
Expand Down

0 comments on commit 32f1cfe

Please sign in to comment.