Remove the cursor hack from CPImageAndTextView, set the cursor globally to the default in CPApplication

This commit is contained in:
Ross Boucher committed 2009-12-04 11:22:57 -08:00
1 parent e1d3363ad9
commit dfb7599bb6
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -259,6 +259,9 @@ CPRunContinuesResponse = -1002;
// We do it here so that applications can change it in willFinish or didFinishLaunching
window.status = " ";
// We also want to set the default cursor on the body, so that buttons and things don't have an iBeam
[[CPCursor arrowCursor] set];
var bundle = [CPBundle mainBundle],
types = [bundle objectForInfoDictionaryKey:@"CPBundleDocumentTypes"];
+2 -2
View File
@@ -340,7 +340,7 @@ var HORIZONTAL_MARGIN = 3.0,
textStyle.position = "absolute";
textStyle.whiteSpace = "pre";
textStyle.cursor = "default";
//textStyle.cursor = "default";
textStyle.zIndex = 200;
textStyle.overflow = "hidden";
@@ -376,7 +376,7 @@ var HORIZONTAL_MARGIN = 3.0,
shadowStyle.font = [_font ? _font : [CPFont systemFontOfSize:12.0] cssString];
shadowStyle.position = "absolute";
shadowStyle.whiteSpace = textStyle.whiteSpace;
shadowStyle.cursor = "default";
//shadowStyle.cursor = "default";
shadowStyle.zIndex = 150;
shadowStyle.textOverflow = textStyle.textOverflow;