[haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control
- From: "humdinger" <trac@xxxxxxxxxxxx>
- Date: Mon, 19 Dec 2016 15:28:07 -0000
#1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not
aligned to the right of the control
----------------------------------+------------------------
Reporter: oco | Owner: jackburton
Type: bug | Status: reopened
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/alpha3
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+------------------------
Comment (by humdinger):
Just to add, I experience an anomaly with a BTextControl with no label
that should be center aligned. The code is a simple:
{{{
fLimitControl = new BTextControl("limitfield", NULL, "", NULL);
fLimitControl->SetAlignment(B_ALIGN_CENTER, B_ALIGN_CENTER);
}}}
and after that I do a bit of DisallowChar() to only allow numbers.
In the attached clip (slow playback as every BeScreenCapture capture...) I
press backspace to delete the text "100". Note the cursor already isn'
really centered. I then enter characters, the control behaves as if it
left aligned, but inset a few dozen pixels. I then delete all characters
and re-type them. The cursor now is completely at the left side, no sign
of center...
This is a real-word example of Clipdinger's settings window, if anyone
wants to reproduce.
--
Ticket URL: <https://dev.haiku-os.org/ticket/1651#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.
Other related posts:
- » [haiku-bugs] [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Pete
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Pete
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- pulkomandy
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control - humdinger
- » [haiku-bugs] [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- humdinger
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- jackburton
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- humdinger
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Haiku
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Haiku
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Haiku
- » [haiku-bugs] Re: [Haiku] #1651: [BTextControl] When alignment is set to B_ALIGN_RIGHT, the text is not aligned to the right of the control- Haiku