*sigh* This is really a constant battle. I added a rather overcomplicated method to fix this in 0.48 and found a much simpler way to do it later on, or so I thought. The problem always comes down to the scrollbar logic being triggered when the window is the wrong size while it's still opening.
As for the resizing part, I really could never figure that out. You are WELCOME to try.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Try this as a small test: add a new line with "return" after the "update idle tasks" on line 302 of tcl/pd_bindings.tcl.
This should force the window the create it's size, then ignore checking the scrollbar until the next scroll event. What might be happening is a delay between creating the window, creating some objects near the scroll edges, and/or the window resizing. Adding the return might try to avoid that the first time around which is what my older, more complicated fix did.
To see the change in an macOS .app bundle: close the app if it's running, right click on the app, and choose "Show package contents", then navigate to Contents/Resources/tcl, edit and save the file, run the app.
This is one of those things that I'm not really seeing too often on my system but, since it's related to timing of events, curl be happening on others if their timing is different.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
(forgot to send to the list)
On Sun, 2018-09-23 at 03:12 +0200, Dan Wilcox wrote:
Try this as a small test: add a new line with "return" after the "update idle tasks" on line 302 of tcl/pd_bindings.tcl.
I can't see a difference at first glance. Without having done an actual measurement, it feels like in 50% of the cases of opening a subpatch the unnecessary scrollbars are drawn and in the other 50% they are not. This is with the 'return' addition and without.
Roman
50% of the cases scrollbars are drawn and in the other 50% they are not, with the 'return' addition and without.
same for me.
Le dim. 23 sept. 2018 à 09:43, Roman Haefeli reduzent@gmail.com a écrit :