Code editor - can't scroll far enough to the right

To reproduce:
Resize the code editor so it is at minimum width.
Paste this example code into the Resources tab.
Click the Script Code tab, then go back to the Resources tab.
Horizontal scroll to the right -- you can't scroll far enough to see all of the code. Also the cursor can be moved out of the window if you are one of the a cut-off lines and use the arrow keys.

The only way to see all of the text is to make the whole window wider.

If you start typing anywhere, the hidden text will become visible once your new line is longer than the hidden text line.

EDIT: I'm on Windows 10


	<resource name="dialog" type="dialog">
		<dialog fontsize="8" height="174" lang="english" resize="yes" standard_buttons="ok,cancel" title="List files" width="350">
			<control height="112" name="listbox1" resize="wh" type="listbox" width="327" x="10" y="16" />
			<control height="14" name="button_add" resize="y" title="Add Selection" type="button" width="64" x="18" y="134" />

Looks ok here with Win 11.

Oh sorry -- I should have mentioned I'm on Windows 10.

Suspect it depends slightly on fonts and DPI, as I was able to reproduce it more easily with this:

	<resource name="dlgList" type="dialog">
		<dialog fontsize="8" height="138" lang="english" resize="yes" standard_buttons="ok,cancel" title="Test" width="318">
			<control checkboxes="auto" fullrow="yes" height="111" name="list" resize="wh" type="listview" viewmode="details" width="306" x="6" y="6" />

It also seems to help to close and re-open the button editor.

On Win 11 it's slightly harder to see in some cases (where all/most of the text is visible but you should be able to scroll on character farther to see the blank space at the end of the line) as it's harder to tell if the scrollbar is all the way to the end or not, due to the lack of visible bounds on Win 11's scrollbars.

@ lxp
I just realized the bug doesn't trigger until you have left the Resources tab at least once after pasting the code into it.
(I edited my original post to reflect this)

True! :+1:

We've tracked down the cause and have a fix on the way. Unfortunately, we're in the middle of re-writing a lot of the editor, which isn't finished yet, so the change may not be in the very next update, but shouldn't be too long away.

As a workaround, pushing End should still take you to the very end of the line.

Thanks for reporting the issue, as we had not noticed it ourselves until you pointed it out!

1 Like