mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
improved: sizing of combobox list
This commit is contained in:
1 parent
3711461201
commit
37fedd41e3
2 files changed
+2
-20
No files matched your search
+1
-18
@@ -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
|
||||
{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user