Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Fix: Allow changing one dimension of TextView/Entry independently #82

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

nullsoepic
Copy link
Contributor

Changing only one dimension (width or height) of a TextView/Entry (textarea/input) would not update the size if the other dimension was not changed. Caused by the width != 0 && height != 0 condition for the set_size_request.

Fix here is just normalizing the width & height, if they are below 0 or not set, they will be set to -1 (which will make them the default size)

@face-hh face-hh merged commit 590dda3 into face-hh:master Jun 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants