Option to disable automatic resizing of the canvas - #1897
Conversation
|
It looks like if you set AutoResize from false to true nothing will happen until the next paint. It might be a good idea, in the AutoResize property setter, to handle changes and then refresh things. |
|
I changed the code so that the AutoResize script will always be imported. Observing is not started anymore when the script is loaded, but will start when the AutoResize-proprety is set to true. If the property is set to false, the element will not be observed anymore. |
|
Are you talking about this bug: #1889 |
|
Yes :) |
|
why would you want to disable automatic resizing? |
|
I think if you want to disable auto-resizing maybe you just need to set a fixed with/height? |
heavily agreed, having an |
|
Fixed with and height can be enforced via CSS, see solution posted here: #2038 (comment) |
At the moment it's not possible to disable automatic resizing of the canvas. Besides that there is a bug in the automatic resizing, I don't want the functionality at all for my project.
I added parameter 'AutoResize' to SKGLView and SKCanvasView (which is true by default). When it is disabled, the SizeWatcherInterop won't be used.
See issue:
#1896
Added: