-
Notifications
You must be signed in to change notification settings - Fork 66
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
The border color specified in a stylesheet is not applied to an image presenter #1649
Comments
The root cause of the issue is the implementation of adoptPaneColor: paneColor
"Change our border color too."
super adoptPaneColor: paneColor.
paneColor ifNil: [^self].
self borderStyle baseColor: paneColor twiceDarker This method sets the borderStyle
^ extension
ifNil: [BorderStyle default trackColorFrom: self]
ifNotNil: [:ext | (ext borderStyle ifNil: [BorderStyle default]) trackColorFrom: self] Note that this method answers a new However, if the morph does have an So the implementation of In conclusion, the method can be removed. It will fix the issue and it has no consequences if no style has been applied. |
Thanks Koen for the analysis and the fix! |
Try this in a Playground:
This snippet opens this window:
Expected and ok:
Expected, but not ok:
The text was updated successfully, but these errors were encountered: