Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
only show toolbar if there is at least one *visible* button
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzy78 committed Dec 8, 2013
1 parent 3197dba commit 9b6f9a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Toolbar/Internal/Toolbar.cs
Expand Up @@ -89,8 +89,9 @@ internal class Toolbar {
}

internal void draw() {
// check for >1 because of dropdown button
if (buttons.Count > 1) {
// only show toolbar if there is at least one visible button
// that is not the drop-down menu button
if (buttons.Any((b) => !b.Equals(dropdownMenuButton) && b.EffectivelyVisible)) {
forceAutoSizeIfButtonVisibilitiesChanged();
autoSize();

Expand Down

0 comments on commit 9b6f9a8

Please sign in to comment.