Skip to content
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

Merged
merged 9 commits into from
Jul 5, 2014
Merged

Conversation

rs22
Copy link
Contributor

@rs22 rs22 commented Jul 5, 2014

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.


self isRelativeSize: aCSSProperty propertyString ifTrue: [
"hope it's percent"
Copy link
Contributor

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

@JenniferStamm
Copy link
Contributor

Currently, we lost a functionality: You cannot open google search results anymore

@@ -0,0 +1,4 @@
layout
adjustBoundsToSubmorphs

Copy link
Contributor

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.

@Steditor
Copy link
Contributor

Steditor commented Jul 5, 2014

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 ].
Copy link
Contributor

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

JenniferStamm added a commit that referenced this pull request Jul 5, 2014
@JenniferStamm JenniferStamm merged commit dbb5098 into master Jul 5, 2014
@JenniferStamm JenniferStamm deleted the rendering/box-model branch July 5, 2014 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants