Opened 16 years ago

Closed 12 years ago

#3658 closed enhancement (fixed)

[styledEdit] cursor is big

Reported by: chico Owned by: korli
Priority: normal Milestone: R1
Component: Applications/StyledEdit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I don't think it's a bug, but it is a little weird.

  1. open styledEdit.
  2. press key 's' a few seconds. make a few characters larger, which are in the end .
  3. press the backspace key until there is no character.
  4. you will find the cursor is too big.

Expected:
when I press the backspace, I will go to the normal font size. So the cursor's behavior is not the same as when I type a few normal size characters, then I delete them all.

Attachments (2)

cursor-big.png (96.4 KB ) - added by chico 16 years ago.
look at the cursor in styledEdit
press.png (101.0 KB ) - added by chico 16 years ago.
press the backspace key to deal with those characters

Download all attachments as: .zip

Change History (6)

by chico, 16 years ago

Attachment: cursor-big.png added

look at the cursor in styledEdit

by chico, 16 years ago

Attachment: press.png added

press the backspace key to deal with those characters

comment:1 by siarzhuk, 12 years ago

As in hrev45013 pedantically doing the steps from 1 to 4 doesn't resproduce described behaviour. All goes as it should work. But as soon as you press <enter> on the big-sized text chunk and make new line below this line - height of cursor on the original line stay "big" regardless of persistence big characters in it.

I suspect the explanation may be easy - invisible CR that still have "big" size is taken into account during calculating the height of the line.

BTW, BeOS StyledEdit behaves in this situation in the same way - so formally we are not obliged to do something about this issue. :-) From the user's point of view I tend to agree that it looks a bit strange.

comment:2 by siarzhuk, 12 years ago

It also depends on "Wrap Line" option state: having one "on" left the cursor "big" but switching line wrapping "off" decreases cursor to "normal" size.

comment:3 by siarzhuk, 12 years ago

fixed in hrev45018.

comment:4 by siarzhuk, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.