Bars don't have their size set anymore. #6
Labels
No labels
SFLCARS-commandline
SFLCARS-interface
SFLCARS-main
SFLCARS-server
SFLCARS-test
SFLCARS-utility
bug: confirmed
bug: unconfirmed
duplicate
enhancement
help wanted
invalid
not an issue
open to pr
p:linux
p:windows
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kennyrkun/SFLCARS#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Layout used to call setSize on every object added with the window size as parameters, and this is how bars got their sizes. This is obviously not great, because everything got big. I removed the setSize and setPosition calls from the
addmethod inLayoutbecause I thought that elements should figure it out themselves.so now bar needs a way to set its size without adding stupid code back into the add function. I think the constructor for Bar should be able to access its parent
Layoutand get the size of the window from there.