Skip to content

Commit

Permalink
boosts: fix dynamically resizing panels. (open-osrs#211)
Browse files Browse the repository at this point in the history
* boosts: fix dynamically resizing panels.

* boosts: bump version.
  • Loading branch information
Ganom authored Apr 30, 2020
1 parent ed61e10 commit 26e5c74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boosts/boosts.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

version = "0.0.5"
version = "0.0.6"

project.extra["PluginName"] = "Boosts Information"
project.extra["PluginDescription"] = "Show combat and/or skill boost information"
Expand All @@ -40,4 +40,4 @@ tasks {
))
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ public Dimension render(Graphics2D graphics)
}

panelComponent.getChildren().clear();
panelComponent.setOverrideResize(true);
panelComponent.setPreferredSize(new Dimension(28, 0));
panelComponent.setWrap(true);
panelComponent.setBackgroundColor(null);
panelComponent.setBorder(new Rectangle());


final Set<Skill> boostedSkills = plugin.getSkillsToDisplay();

if (boostedSkills.isEmpty())
Expand Down

0 comments on commit 26e5c74

Please sign in to comment.