openrndr / orx

A growing library of assorted data structures, algorithms and utilities for OPENRNDR
https://openrndr.org
BSD 2-Clause "Simplified" License
118 stars 36 forks source link

[orx-gui] Rendering issues after maximizing window #298

Closed Yvee1 closed 1 year ago

Yvee1 commented 1 year ago

Operating System

Windows

OPENRNDR version

latest from Github at the time of writing

ORX version

latest from Github at the time of writing

Java version (if applicable)

No response

Describe the bug

After maximizing the window while running the program, only the part of the GUI that was within the original window size seems to render correctly.

Steps to reproduce the bug

  1. Run the following program
    fun main() = application {
    configure {
        windowResizable = true
        height = 100
    }
    program {
        val s = object {
            @ActionParameter("Filler")
            fun f() { }
            @ActionParameter("More filler")
            fun g() { }
        }
        val gui = GUI()
        gui.add(s)
        extend(gui)
    }
    }
  2. Click on "No name" to expand that section of the GUI.
  3. Maximize the window by clicking the according button in the window toolbar.
  4. Note that the "More filler" button is not rendered correctly (not visibible except when hovering over it).

Increasing the height of the window by dragging the top or bottom of the window does not cause the issue (on my pc). Same with first increasing the height, and then maximizing.