We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WBox
Describe the bug Root WBox is smaller than expected when center aligned.
To Reproduce Steps to reproduce the behavior:
setHorizontalAlignment(HorizontalAlignment.CENTER)
Expected behavior Optional Should be normal as left aligned.
Screenshots Optional
WBox root = new WBox(Axis.VERTICAL).setHorizontalAlignment(HorizontalAlignment.XXX).setInsets(INSETS); setRootPanel(root); root.add(new WItemStorageSlot(blockInventory,0,5,1,false,blockEntity.storage.parts)); root.add(createPlayerInventoryPanel()); root.validate(this);
LEFT
CENTER
Version of the (please complete the following information):
Additional context Optional My current solution:
WBox root = new WBox(Axis.VERTICAL).setInsets(INSETS); setRootPanel(root); WBox vBox = new WBox(Axis.VERTICAL).setHorizontalAlignment(HorizontalAlignment.CENTER); root.add(vBox); vBox.add(new WItemStorageSlot(blockInventory, 0, 5, 1, false, blockEntity.storage.parts)); vBox.add(createPlayerInventoryPanel()); root.validate(this);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Root
WBox
is smaller than expected when center aligned.To Reproduce
Steps to reproduce the behavior:
WBox
as root.setHorizontalAlignment(HorizontalAlignment.CENTER)
Expected behavior Optional
Should be normal as left aligned.
Screenshots Optional
LEFT
CENTER
Version of the (please complete the following information):
-- amecsapi 1.4.0+mc1.20-pre1
-- cloth-basic-math 0.6.1
|-- com_electronwill_night-config_core 3.6.5
|-- com_electronwill_night-config_toml 3.6.5
-- me_djtheredstoner_common_ 1.1.2
-- com_github_towdium_pinin 1.6.0
|-- com_twelvemonkeys_common_common-image 3.10.0-SNAPSHOT
|-- com_twelvemonkeys_common_common-io 3.10.0-SNAPSHOT
|-- com_twelvemonkeys_common_common-lang 3.10.0-SNAPSHOT
|-- com_twelvemonkeys_imageio_imageio-core 3.10.0-SNAPSHOT
|-- com_twelvemonkeys_imageio_imageio-metadata 3.10.0-SNAPSHOT
|-- com_twelvemonkeys_imageio_imageio-webp 3.10.0-SNAPSHOT
|-- org_quiltmc_parsers_gson 0.2.1
-- org_quiltmc_parsers_json 0.2.1
Additional context Optional
My current solution:
The text was updated successfully, but these errors were encountered: