Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
TextEdit
being too short whenever there is horizontal margin (#…
…4005) The allocated width is reduced by the horizontal margin inside `show_content` but the margin is already factored into the content_ui's rect. This causes both text and frame (not shown here) to be `2.0 * margin.x` too short. Before: ![image](https://github.com/emilk/egui/assets/23122431/6a9a0264-3fc0-48b7-b462-82120ed47fcf) After: ![image-1](https://github.com/emilk/egui/assets/23122431/ffef9edc-d571-4fca-96cf-c2e42e2f0057) (*The blue rect is the TextEdit's (expected) final size.) Co-authored-by: Georg Weisert <[email protected]>
- Loading branch information