Skip to content

Commit

Permalink
Don't allow sidebar to be nestled against side of container
Browse files Browse the repository at this point in the history
Otherwise, it might not be seen
  • Loading branch information
slusarz committed Apr 22, 2014
1 parent 204726f commit 6982a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/js/viewport.js
Expand Up @@ -528,7 +528,7 @@ var ViewPort = Class.create({

/* Adapt splitbar width to current screen size. */
sp.vert.width = sp.vert.width
? Math.min(sp.vert.width, Math.max(0, w - 10))
? Math.max(15, Math.min(w - 15, sp.vert.width))
: parseInt(w * 0.45, 10);

h += lh * this.page_size - this.opts.container.getLayout().get('border-bottom');
Expand Down

0 comments on commit 6982a3f

Please sign in to comment.