We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This can happen when a script in a Workspace creates an element in a space, sends show it it, and immediately sends inspect to the element.
show
inspect
The inspector preview tab for element defined in:
BlElement >> inspectionPreview: aBuilder <inspectorPresentationOrder: 1 title: 'Preview'> ^ aBuilder newMorph morph: self asPreviewMorph; yourself
ends up executing this:
BlElement >> aeAsForm | invalidationBounds aCanvas | self isLayoutRequested ifTrue: [ self forceLayout ]. "We want to consider our border, effect, as well as children's." invalidationBounds := self invalidationBoundsInSpace. aCanvas := AeCanvas extent: invalidationBounds extent. aCanvas pathTranslate: invalidationBounds origin negated. self aeFullDrawOn: aCanvas. ^ aCanvas asForm
This can be seen in this example of Toplo:
ToSandbox >> example_SelectMaterialDesignIconMultiFiltrable | select | select := ToMultiSelectElement new. self buildSelectListElementIn: select withIconProvider: ToMaterialDesignIconProvider. select filtrable: true. select nodeBuilder: [ :node :holder :iconDesc| | imPane | imPane := ToElement new layout: BlFrameLayout new. imPane fitContent. imPane withNullSkin. imPane background: Color veryLightGray. imPane addChild: (iconDesc icon size: 48 asPoint). node middleElement: imPane ]. select fakeDataItem: select dataAccessor first. select hMatchParent. select placeholderText: ('Select icons' asRopedText foreground: Color red). select inputTextField requestFocus. select openInSpace. select inspect
The text was updated successfully, but these errors were encountered:
Export: avoid forceLayout if isLayoutRequested is false
0509276
Related to #560
Related reading, in web/chrome:
-> A common performance issue in web apps is forced synchronous layout: reading the size of an element and forcing the browser to immediately and synchronously undergo layout and style calculations in order to figure out the size. (https://tigeroakes.com/posts/resize-observer-avoid-forced-sync-layout/)
-> "Avoid forced synchronous layouts": https://web.dev/articles/avoid-large-complex-layouts-and-layout-thrashing#avoid_forced_synchronous_layouts
Sorry, something went wrong.
No branches or pull requests
This can happen when a script in a Workspace creates an element in a space, sends
show
it it, and immediately sendsinspect
to the element.The inspector preview tab for element defined in:
ends up executing this:
This can be seen in this example of Toplo:
The text was updated successfully, but these errors were encountered: