[squeak-dev] Strange render bug
Chris Muller
asqueaker at gmail.com
Fri Jul 26 15:42:30 UTC 2013
Bob, you ROCK man! I nominate you to be our official Morphic mentor!
This appears to have fixed it. I want to do at least a full day's
development work to make sure I don't see any other side-effects (like
chars appearing out of order they were typed).
Thank you!
On Thu, Jul 25, 2013 at 12:10 PM, Bob Arning <arning315 at comcast.net> wrote:
> Try this:
>
> 'From Squeak4.4 of 1 March 2013 [latest update: #12489] on 25 July 2013 at
> 1:09:32 pm'!
>
> !PluggableTextMorphPlus methodsFor: 'styling' stamp: 'raa 7/25/2013 13:09'!
> stylerStyled: styledCopyOfText
> "Sent after the styler completed styling the underlying text"
> textMorph contents runs: styledCopyOfText runs .
> "textMorph paragraph recomposeFrom: 1 to: textMorph contents size delta:
> 0." "caused chars to appear in wrong order esp. in demo mode. remove
> this line when sure it is fixed"
> textMorph paragraph composeAll. "<---- added this"
> textMorph updateFromParagraph.
> selectionInterval
> ifNotNil:[
> textMorph editor
> selectInvisiblyFrom: selectionInterval first to:
> selectionInterval last;
> storeSelectionInParagraph;
> setEmphasisHere].
> textMorph editor blinkParen.
> self scrollSelectionIntoView! !
>
> Cheers,
> Bob
>
> On 7/25/13 12:02 PM, Chris Muller wrote:
>
> This has been a very annoying bug for years and it still bites me
> every single day. It seems to be related to incorrect calculation of
> the width of bold text. If anyone knows how to fix this, I would be
> very grateful.
>
> On Wed, Jul 24, 2013 at 4:17 PM, Frank Shearar <frank.shearar at gmail.com>
> wrote:
>
> I just noticed this in the dependency browser. Note the right end of
> the top line, and the left part of the next line. The "withStamp:" is
> my favourite, where we have half a word normal+blue, and the other
> half black+bold. The bug disappears as soon as I widen the codepane.
>
> I can't reproduce the bug by narrowing the codepane though: the text
> correctly word-wraps.
>
> (Duly reported as http://bugs.squeak.org/view.php?id=7781)
>
> frank
>
>
>
>
>
>
>
>
More information about the Squeak-dev
mailing list
|