Skip to content

Instantly share code, notes, and snippets.

@tbalthazar
Created January 5, 2009 11:41
Show Gist options
  • Save tbalthazar/43361 to your computer and use it in GitHub Desktop.
Save tbalthazar/43361 to your computer and use it in GitHub Desktop.
- (void)setFrameSize:(CGSize)aSize
{
[super setFrameSize:aSize];
#if PLATFORM(DOM)
if (_isBezeled && _bezelStyle == CPTextFieldRoundedBezel)
CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * ROUNDEDBEZEL_HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING);
else
CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING);
// CPDOMDisplayServerSetStyleSize(_DOMTextElement, _frame.size.width - 2.0 * HORIZONTAL_PADDING, _frame.size.height - TOP_PADDING - BOTTOM_PADDING);
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment