Closed
Bug 391738
Opened 18 years ago
Closed 17 years ago
Feed icon changes don't update location bar padding correctly
Categories
(Camino Graveyard :: Location Bar & Autocomplete, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stuart.morgan+bugzilla, Assigned: chris)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
2.17 KB,
patch
|
stuart.morgan+bugzilla
:
superreview+
|
Details | Diff | Splinter Review |
I almost always see incorrect padding around the feed icon (no space at all between the left edge and the text) when it appears on top of a URL in the location bar, but anything that causes a redraw (clicking in the bar, resizing the window, etc.) fixes it. It feels like we are changing some internal sizing but not calling setNeedsDisplay:.
| Assignee | ||
Comment 1•17 years ago
|
||
You're right, it does need a setNeedsDisplay: call or two. Here's a patch.
| Reporter | ||
Updated•17 years ago
|
Attachment #337186 -
Flags: review? → review-
| Reporter | ||
Comment 2•17 years ago
|
||
Comment on attachment 337186 [details] [diff] [review]
Fix v1.0
> -(void)positionFeedIcon
> [...]
>+ [self setNeedsDisplay:YES];
This one should be in displayFeedIcon:
In both cases, put the setNeedsDisplay: inside each of the if and else blocks, since when neither happens we don't need to display.
(Just go ahead and request sr from me for the next round)
| Assignee | ||
Comment 3•17 years ago
|
||
Fix incorporating reviewer comments.
Attachment #337186 -
Attachment is obsolete: true
Attachment #337245 -
Flags: superreview?(stuart.morgan+bugzilla)
| Reporter | ||
Updated•17 years ago
|
Attachment #337245 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview-
| Reporter | ||
Comment 4•17 years ago
|
||
Comment on attachment 337245 [details] [diff] [review]
Fix v1.1
>+ [self setNeedsDisplay:YES];
>
> // If the feed icon needs to be displayed, and it was drawn before the secure icon, move the
> // feed icon to the left hand side of the secure icon.
> if ([[self cell] isFeedIconDisplayed])
> [self positionFeedIcon];
setNeedsDisplay should be called after all the changes that require a display.
Also, we should be calling setNeedsDisplay in the hiding cases as well; either changes requires re-displaying.
| Assignee | ||
Comment 5•17 years ago
|
||
Should have setNeedsDisplay in all the right places.
Attachment #337245 -
Attachment is obsolete: true
Attachment #337260 -
Flags: superreview?(stuart.morgan+bugzilla)
| Reporter | ||
Comment 6•17 years ago
|
||
Comment on attachment 337260 [details] [diff] [review]
Fix v1.2
Looks good, sr=smorgan
Attachment #337260 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview+
Landed on cvs trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•