-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Improved element size rendering #143
Conversation
|
||
self isRelativeSize: aCSSProperty propertyString ifTrue: [ | ||
"hope it's percent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should later be changed: Percent should be relative to the parent's width, em and ex should be relative to the local font size.
For now I wouldn't implement this, but defer to #145
Currently, we lost a functionality: You cannot open google search results anymore |
@@ -0,0 +1,4 @@ | |||
layout | |||
adjustBoundsToSubmorphs | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment here why this returns false? Tables normally (within limits) adjust to their contents' sizes.
Apart from the bug @JenniferStamm already mentioned (according non-clickable links) this can be ⛵ed |
| submorphCorner delta | | ||
submorphCorner := self submorphs | ||
ifEmpty: [ self position + self computedSize ] | ||
ifNotEmpty: [ ((self submorphBounds origin extent: self computedSize) quickMerge: self submorphBounds) corner asIntegerPoint ]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is kind of long
Improved element size rendering
Not actually an implementation of box-model yet - block element widths fill all available space, and the document height is also at least the height of the WebPageMorph.