Menu

#968 Regions sometime cause text to get grabbled

v1.0_(example)
closed
region (1)
1
2014-09-01
2014-08-28
No

Hello,

We are using regions in order do start paragraphs with big letters : we write the first big letter in a box, and put a region so regular text don't go under it.
Then, we set back the X/Y position to where it was in order to have the text start at the top bog that big letter.
This works smoothly most of the time, but has odd behaviors sometime. As of now, I'm trying to make a small test case.

Here are three screenshots :

  • The first one works as expected
  • The second one is how it looks if I don't use the setXY after writing the big letter (on another place, where I have that bug)
  • The third one is how it looks if I use the setXY after I write my big letter

The difference between example 1 and 2/3 is that the first one has no particular left margin, while in the later we start the text in a second column -> there is an extra box on the left.

I'm available for any test / debug, I'll send a proper test case if I manage to get a small/clean one.

Thanks for the help !

1 Attachments

Discussion

  • Mathieu Masseboeuf

    Solved our problem by only calling setY instead of setXY.
    SetXY was putting back the position which was used before adding that big letter (top left of the box) - so in our case setY was sufficient.
    There is something strange happening though, as it should work.
    Anyway, hope this bug report can at least help someone facing a similar issues with boxes :)

     
  • Nicola Asuni

    Nicola Asuni - 2014-09-01
    • status: open --> closed
     
  • Nicola Asuni

    Nicola Asuni - 2014-09-01

    OK. closing this as it is not a bug.

     
  • Mathieu Masseboeuf

    I found a workaround to my problem, but I don't think what I saw was an expected behavior :

    Setting the cursor in any place shouldn't lead to the result (colliding text) as seen in the provided screenshot when using regions, no ?

     

Log in to post a comment.

MongoDB Logo MongoDB