openbrainsrc / Radian

Plotting with AngularJS
http://openbrainsrc.github.io/Radian/index.html
168 stars 19 forks source link

When calculating available space, consider the border #25

Closed glutamate closed 10 years ago

glutamate commented 11 years ago

attached screenshot has a horizontal scrollbar. Border is 4px.

screenshot - 190913 - 15 28 49

ian-ross commented 10 years ago

I've been trying to figure this one out, and I can't quite see what the problem is. I've set up a document in BayesHive that looks a bit like this, and I'm looking at the appearance and disappearance of the horizontal scrollbars as I resize the window. As far as I can see, the scrollbar appears at exactly the right point (as the right hand edge of the containing document container impinges on the right hand edge of the plot). Anyway, in this case, the Radian plots have a fixed size (600px wide), so it's up to the browser when the scrollbars appear, I think. Or have I completely misunderstood what's going on here?

glutamate commented 10 years ago

This wasn't a browser-width issue; the scrollbars were always there.

I changed the output code in Baysig so the border is on the enclosing div, so you no longer see this in BayesHive.

I also can't really reproduce this playing with styles in the Radian examples, so let's close this for now.