Revert "fixed layout resizing"

This reverts commit 6f84898a5d4c7bc96e682e5b08ba3973ce36d4fa.
This commit is contained in:
Michael Freno
2025-09-21 10:54:21 -04:00
parent 1d695cb993
commit b2aff5c38c
2 changed files with 2 additions and 40 deletions

View File

@@ -1,36 +0,0 @@
-- Test current font behavior during resize
package.path = package.path .. ";?.lua"
require("testing/loveStub") -- Required to mock LOVE functions
local FlexLove = require("FlexLove")
local Gui = FlexLove.GUI
local function testCurrentFontBehavior()
print("=== Testing Current Font Behavior During Resize ===")
Gui.destroy() -- Clean slate
-- Create element with text and specific font size
local element = Gui.new({
id = "textElement",
x = 100, y = 100,
w = 400, h = 200,
text = "Hello World",
textSize = 16
})
element.prevGameSize = { width = 800, height = 600 }
print("Before resize:")
print(string.format("Element: %dx%d, textSize: %s", element.width, element.height, element.textSize or "nil"))
-- Resize from 800x600 to 1200x900 (1.5x scale)
element:resize(1200, 900)
print("\nAfter resize (1200x900):")
print(string.format("Element: %dx%d, textSize: %s", element.width, element.height, element.textSize or "nil"))
print("\nExpected: Element should be 600x300, textSize should scale to 24 (16 * 1.5)")
print("Current: textSize doesn't scale - this is the issue we need to fix")
end
testCurrentFontBehavior()