Closed
Bug 183887
Opened 22 years ago
Closed 22 years ago
Text alignment feedback is incorrect inside other styles (in CSS mode)
Categories
(SeaMonkey :: Composer, defect)
SeaMonkey
Composer
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jmt, Assigned: glazou)
Details
(Whiteboard: EDITORBASE)
Attachments
(1 file)
1.52 KB,
patch
|
mozeditor
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
Create a paragraph of text with a non-default (left) alignment, and apply some style (bold, italic, color, size, whatever) to some subset of the text. When the cursor is inside this text, the UI feedback for the text-alignment (the button in the toolbar) is incorrect (it revert back to the default value of left). This problem is 'deep' in that the value coming out of the command object is wrong: I know this becuase we have our own UI for the editor in our editing application, with copies of pokeMultiStyleUI (or whatever it's called), and the 'state' values that get sent to the JS code are definitely wrong. So as a wild guess, nsAlignCommand is computing the worng value. I'll attach a test case in a second.
Assignee | ||
Comment 1•22 years ago
|
||
glargl ! confirming. taking. plussing (this happens in CSS mode).
Assignee | ||
Comment 2•22 years ago
|
||
This should go in 1.3a.
Assignee | ||
Comment 3•22 years ago
|
||
Comment on attachment 108485 [details] [diff] [review] patch take #1 Joe, can you r= please ? Peter, can you sr= please ? Thanks.
Attachment #108485 -
Flags: superreview?(peterv)
Attachment #108485 -
Flags: review?(jfrancis)
Reporter | ||
Comment 4•22 years ago
|
||
Just to confirm, applying this patch (to our 1.2 branch, but it applied cleanly) fixes this problem for us. Many thanks Daniel! Oh, and the patch looks fine to me too, if you'll consider that 1/2 of a review :-)
Comment 5•22 years ago
|
||
Comment on attachment 108485 [details] [diff] [review] patch take #1 >+ if (!blockParent) return NS_ERROR_FAILURE; This return should be on its own line. Apparently it's the style in these files so I won't let this block my sr but that style should be changed some day.
Attachment #108485 -
Flags: superreview?(peterv) → superreview+
Updated•22 years ago
|
Attachment #108485 -
Flags: review?(jfrancis) → review+
Assignee | ||
Comment 6•22 years ago
|
||
checked in trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•