pladams9 / hexsheets

A basic spreadsheet application with hexagonal cells inspired by: http://www.secretgeek.net/hexcel.
MIT License
90 stars 3 forks source link

Row and column resizing #42

Closed pladams9 closed 4 years ago

pladams9 commented 4 years ago

Current draft of this feature.

resize draft

Will close #4

Issues that still need to be resolved:

pladams9 commented 4 years ago

Broken resize preview lines

broken line

This is happening because the cell text for each cell is a label in a window. Windows are drawn above everything on a canvas.

Cell text should be changed to use a text canvas item so that it works like other canvas items. A the same time, text items should only be created for cells that have text in them. This might speed things up some (both using less items and not using full label widgets).

Label widgets and windows were used originally to allow the label to easily be cut off to a specific square. A new way will need to be worked out... possibly just reducing the number of characters in each text item based on size.

pladams9 commented 4 years ago

Disappearing cell borders

When resizing, some borders start disappearing. It appears to happen to the bottom border of inter-row cells when the above row is too tall.

missing borders

pladams9 commented 4 years ago

Cell border issue ended up being related to broken line issue - the cell text labels were overlapping certain borders due to having the height of the row above. Fixed height issue.