Strange resize error

Getting a weird error on occasion. It claims that a text field is causing the window to auto shrink to negative sizes.

java.lang.RuntimeException: Component:com.simsilica.lemur.component.TextComponent@28784bfa shrunk the preferred size. Before:(0.0, 0.0, 0.0) after:(-0.99, 17.294117, 0.0)
at com.simsilica.lemur.core.GuiControl.getPreferredSize(
at com.simsilica.lemur.component.BorderLayout.getPreferredSize(
at com.simsilica.lemur.component.BorderLayout.calculatePreferredSize(
at com.simsilica.lemur.core.GuiControl.getPreferredSize(
at com.simsilica.lemur.component.SpringGridLayout$Entry.getPreferredSize(
at com.simsilica.lemur.component.SpringGridLayout.refreshRowColPrefs(
at com.simsilica.lemur.component.SpringGridLayout.calculatePreferredSize(
at com.simsilica.lemur.component.SpringGridLayout.reshape(
at com.simsilica.lemur.core.GuiControl.setSize(
at com.simsilica.lemur.core.GuiControl.revalidate(
at com.simsilica.lemur.core.GuiControl.controlUpdate(
at com.jme3.scene.control.AbstractControl.update(
at com.jme3.scene.Spatial.runControlUpdate(
at com.jme3.scene.Spatial.updateLogicalState(
at com.jme3.scene.Node.updateLogicalState(
at com.jme3.scene.Node.updateLogicalState(
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(

I’m not doing anything particularly magical though. And given that the error isn’t being thrown doesn’t say where this is dying in my code I’m at a bit of a loss.

This means that the layout is asking the label to be smaller than it can be… ie: it’s asking the width to be negative.

Often this is a sign that you are trying to set the main window smaller than its preferred size. But I think there is one of the Flow types that can also be confused. I would need to know more about the GUI panel’s setup to say more.

Maybe I should specify the width statically as opposed to letting it size it’s own width?

In any case I just discovered I have bigger fish to fry in my code so I’ll have to loop back to this once I’ve fixed it.

Thanks for you help!