mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-03 19:44:22 +00:00
Restore CPButtonBar resizeControlFrame and clean up updateBackgroundColor
Restore `resizeControlFrame` in `CPButtonBar`, remove the `updateBackgroundColor` stub and call from the `CPProgressIndicator` category in `Tools/nib2cib/NSProgressIndicator.j`, and remove `updateBackgroundColor` from `Tests/AppKit/Resources/DropInBaseline.json`.
This commit is contained in:
1 parent
d8c92f5d1c
commit
3cdd28bba7
3 files changed
+13
-6
No files matched your search
@@ -800,6 +800,19 @@ var ButtonBarItemSetBordered = function(anItem, shouldBeBordered)
|
||||
return CGRectMake(bounds.size.width - _resizeControlViewSize.width - _resizeControlViewInset.right - _resizeControlViewInset.left, 0, _resizeControlViewSize.width + _resizeControlViewInset.left + _resizeControlViewInset.right, _resizeControlViewSize.height + _resizeControlViewInset.top + _resizeControlViewInset.bottom);
|
||||
}
|
||||
|
||||
/*
|
||||
2026-11-27: an application that asked for the resize control frame raised an unrecognized
|
||||
selector. Cause: the rewrite that added a resize control on each side replaced this method
|
||||
with leftResizeControlFrame and rightResizeControlFrame, but did not keep it with the other
|
||||
single-control methods it maps onto the two-sided model. It returns the frame of the left
|
||||
control when the bar has one, as resizeControlIsLeftAligned reports, and of the right
|
||||
control otherwise.
|
||||
*/
|
||||
- (CGRect)resizeControlFrame
|
||||
{
|
||||
return _hasLeftResizeControl ? [self leftResizeControlFrame] : [self rightResizeControlFrame];
|
||||
}
|
||||
|
||||
- (CGRect)rectForEphemeralSubviewNamed:(CPString)aName
|
||||
{
|
||||
if (aName === @"left-resize-control-view")
|
||||
|
||||
@@ -3813,7 +3813,6 @@
|
||||
"sizeToFit",
|
||||
"startAnimation:",
|
||||
"stopAnimation:",
|
||||
"updateBackgroundColor",
|
||||
"usesThreadedAnimation"
|
||||
],
|
||||
"CPPropertyListSerialization": [],
|
||||
|
||||
@@ -27,10 +27,6 @@
|
||||
var NSProgressIndicatorSpinningFlag = 1 << 12;
|
||||
|
||||
@implementation CPProgressIndicator (NSCoding)
|
||||
- (id)updateBackgroundColor
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
@@ -72,7 +68,6 @@ var NSProgressIndicatorSpinningFlag = 1 << 12;
|
||||
[self setFrameSize:currentFrameSize];
|
||||
|
||||
// update graphics
|
||||
[self updateBackgroundColor];
|
||||
[self drawBar];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user