improved: sizing of combobox list

This commit is contained in:
daboe01 committed 2022-09-30 19:22:16 +02:00
1 parent 3711461201
commit 37fedd41e3
2 files changed
+2 -20

No files matched your search

+1 -18
View File
@@ -533,7 +533,7 @@ var CPComboBoxTextSubview = @"text",
CPComboBoxFocusRingWidth = inset.bottom;
}
[_listDelegate popUpRelativeToRect:[self _borderFrame] view:self offset:CPComboBoxFocusRingWidth - 1];
[_listDelegate popUpRelativeToRect:[self bounds] view:self offset:CPComboBoxFocusRingWidth - 1];
[self _selectMatchingItem];
}
@@ -975,23 +975,6 @@ var CPComboBoxTextSubview = @"text",
}
}
/*!
Calculate the frame in base coordinates that will nestle just below the visible border of the text field.
@ignore
*/
- (CGRect)_borderFrame
{
var inset = [self currentValueForThemeAttribute:@"border-inset"],
frame = [self bounds];
frame.origin.x += inset.left;
frame.origin.y += inset.top;
frame.size.width -= inset.left + inset.right;
frame.size.height -= inset.top + inset.bottom;
return frame;
}
/* @ignore */
- (void)_popUpButtonWasClicked
{
+1 -2
View File
@@ -2342,7 +2342,6 @@ var themedButtonValues = nil,
{
var scrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)],
borderColor = /*[CPColor colorWithWhite:0.0 alpha:0.2]*/[CPColor redColor],
// bottomCornerColor = PatternColor(@"scrollview-bottom-corner-color.png", 15.0, 15.0),
bottomCornerColor = [CPColor colorWithCSSDictionary:@{
@"background-color": A3ColorScrollerBackground
@@ -2360,7 +2359,7 @@ var themedButtonValues = nil,
bezelFocusedCssColor = [CPColor colorWithCSSDictionary:@{
@"background-color": A3ColorBackgroundWhite,
@"border-color": @"A3ColorBorderBlue",
@"border-color": A3ColorBorderBlue,
@"border-style": @"solid",
@"border-width": @"1px",
@"border-radius": @"0px",