Treemap layout instability

I have found that my treemap tab resizes the map when I leave the tab and return.

Here is the treetop tab at full size:

When I click out to a second tab:

When I return to the tab:

As soon as I click on the ‘maximum depth’ slider control ( I keep it at position ‘1’ ) the map resizes.

I am using 10.1.2

I believe refreshing the layout by clicking the selected tab will correct this. We’ll investigate.

I hadn’t tired that and it works as well. Thank you.

It is not the 'map/ but the split between the view pane and text pane. In your scenario the view pane holds a treemap and the text pane is empty but normally holds info on the selected note.

In any document window tab, the two views are divided by a moveable splitter bar. In your first screen grab you have likely used the WindowView only menu option or Cmd+6 to move the bar all the way right, essentially hiding the the text pane and giving over more space to the view pane.

If the tab (either or both panes) appears to need updating, i.e. the UI being redrawn correctly, clicking the current tab does this. In the past the same was achieved by switching to another tab and back.


For @eastgate, in testing, I noticed an additional separate treemap issue. The treemap view is also failing to correctly store/restore its selected item, i.e. tab switch can result in an empty view pane even though a note was selected when the tab was last used. Tab click does restore the view pane and splitter state but not the view’s selection. Looking that the XML, the selection parameter is not getting populated properly:

For anyone else following along, these are the TBX’s XML <tab> tag attributes, in the garb above being viewed in BBEdit.

@mwra thanks for your note. I can reproduce behavior such as I described by toggling between ‘View Only’ and ‘View and Text’

View and text mode:

![split-screen with the selected note|690x429(upload://dhiAyAx7ICvd8qqAfcQj45VGF46.jpeg)

In my original scenario I was making no use of ‘View and Text’ when working with the Treemap, simply navigating between tabs.

Thanks for the additional insight.

1 Like