Skip to content

Commit

Permalink
Fix for the stats title pane sizing and AOOB.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilfb committed Aug 22, 2016
1 parent f289625 commit 5fe6ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void onFormatChange(final MessageFormatChangeEvent event)

private void updateMessage(final int messageIndex)
{
if (messageIndex > 0)
if (messageIndex > 0 && store.getMessages().size() > 0)
{
FormattedMqttMessage message = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ public void changed(ObservableValue<? extends Number> observable, Number oldValu
final double newV = (double) newValue;

final Double diff = oldV - newV;
final Double target = (diff < 20 && diff > 0) ? newV - 20 : newV;
// If resizing down, jump at least by 10; otherwise no target
final Double target = (diff < 10 && diff > 0) ? newV - 10 : null;

logger.debug("Using target width of {}; requested {}; previously {}", target, newValue, oldValue);

Expand Down

0 comments on commit 5fe6ab2

Please sign in to comment.