Fixed no border CPTextField inset to match the default, changed license to LGPL 3.0, added missing PLATFORM(DOM) guard

This commit is contained in:
Aparajita Fishman committed 2011-08-24 10:50:15 -04:00
1 parent 777b167a2a
commit 3d52935be0
3 files changed
+4 -14

No files matched your search

+1 -13
View File
@@ -5,19 +5,7 @@
* Created by Aparajita Fishman.
* Copyright (c) 2011, Intalio, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Licensed LGPL 3.0 - http://www.gnu.org/licenses/lgpl.html
*/
@import "CPTextField.j"
+1 -1
View File
@@ -813,7 +813,7 @@ var themedButtonValues = nil,
// no border
[@"bezel-inset", CGInsetMake(0.0, 0.0, 0.0, 0.0)],
[@"content-inset", CGInsetMake(0.0, 0.0, 0.0, 0.0)],
[@"content-inset", CGInsetMake(2.0, 2.0, 2.0, 2.0)], // as defined in [CPTextField +themeAttributes]
// with border
[@"bezel-inset", CGInsetMake(0.0, 0.0, 0.0, 0.0), CPThemeStateBezeled],
+2
View File
@@ -294,6 +294,7 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
var textFrame = CGRectMakeZero();
#if PLATFORM(DOM)
if (_DOMTextElement)
{
var textStyle = _DOMTextElement.style;
@@ -306,6 +307,7 @@ var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
textFrame.size.width += _textShadowOffset.width;
textFrame.size.height += _textShadowOffset.height;
}
#endif
return textFrame;
}