Warning render image with negative width <solved>

Hello,

my program runs fine but I always get the following Warning repeatedly:

WARNING: Attempted to render image with negative width
Feb 04, 2021 10:30:44 AM de.lessvoid.nifty.render.batch.BatchRenderDevice renderImage

I would like to know what the source of this problem is . How can I find out?
I’m not a professional programmer!
Thanks in advance!

1 Like

You can debug it or at least look at the source code. But if everything seems to be working just fine, then I just suggest you tone Nifty down. It does an awful lot of logging.

Logger.getLogger("de.lessvoid.nifty").setLevel(Level.OFF); // or Level.SEVERE
2 Likes

Thanks for the fast response. I found the solution. I had a “dummy”-button with a width of “0px”.

1 Like