Reducing a grid's height in the interface editor to create an exact fit is causing the scroll bar to appear.
Numbered Steps to Reproduce Problem:
- In the interface editor, create a grid that is a size of 282 by 282 and has 4 columns and 8 rows.
- Turn off show names.
- Fill the cells in columns 1 and 3 with atoms that have a 32x32 icon.
- Fill the cells in columns 2 and 4 with 2 lines of text such as "Show Time Movie[br]Comedy" (replace [br] with an HTML break)
- Run the program, the cells with lines will only take up 282x264, leaving an extra 18 pixels at the bottom.
- In the interface editor, reduce the size of the grid to 282 by 264.
- Run the program, the grid will now draw the scroll bar on the right hand side of the grid, but also add empty pixels equal to the width of the scroll bar to the left of the scroll bar. This will cause some of the lines of text to wrap to 3 lines instead of 2, thus requiring the scrolling.
Expected Results:
Reducing the height of the grid in the interface editor to create an exact fit should not draw the scroll bar.
Actual Results:
Reducing the height of the grid in the interface editor to create an exact fit draws the scroll bar.
Does the problem occur:
Every time? Or how often? Yes
In other games? Unknown
In other user accounts? Unknown
On other computers? Unknown
When does the problem NOT occur?
Unknown
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
- Leave the grid as a 282x282
- Add the following line to update the grid
winset(src, "window.grid", "cells='4x8';size='282x264'")
- This will create the exact fit as wanted, but will not erroneously draw the scroll bar.