Skip to content

gmoccapy: fix increasing window size on edit (2.9)#3330

Merged
hansu merged 1 commit intoLinuxCNC:2.9from
hansu:gmoccapy-fix-resizing
Feb 12, 2025
Merged

gmoccapy: fix increasing window size on edit (2.9)#3330
hansu merged 1 commit intoLinuxCNC:2.9from
hansu:gmoccapy-fix-resizing

Conversation

@hansu
Copy link
Copy Markdown
Member

@hansu hansu commented Feb 7, 2025

For some translations the text for the search/replace buttons is too wide to fit the smallest window size. The result is that the window width increases in edit mode:

gmoccapy_edit_de_en

gmoccapy-resize-edit

Changing the text to icons for the undo and redo buttons resolves this:

gmoccapy_edit_new_de

@gmoccapy Are you okay with the button solution or do you have a better proposal?
For the master branch I thought to optimize this further, maybe similar to how it's done in kate

For some translations the text for the search/replace buttons is too wide to fit the smallest window size.
The result is that the window width increases in edit mode.
Changing the text to icons for the undo and redo buttons gives enough space.
@hansu hansu changed the title gmoccapy: change text to icons of undo/redo buttons to fit window size gmoccapy: fix increasing window size on edit (2.9) Feb 7, 2025
@andypugh andypugh requested a review from gmoccapy February 9, 2025 00:21
@gmoccapy
Copy link
Copy Markdown
Collaborator

Hallo Hans,

i like the solution with the icon button.
They look better than the text solution i made.

So go ahead!

Norbert

@hansu hansu merged commit ddea941 into LinuxCNC:2.9 Feb 12, 2025
@hansu hansu deleted the gmoccapy-fix-resizing branch February 12, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants