mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 04:35:32 +00:00
Sizing the I-beam cursor area from the bounds inset by the content inset, rather than from the content rect, placed the area over portions of the text field that subclasses exclude from their content rect. In a search field, which keeps its text between its search and cancel buttons, the I-beam area covered both buttons and overlapped their tracking areas, causing cursor update conflicts whenever the pointer entered a button. - CPTextField: Size the I-beam cursor area in -updateTrackingAreas from -contentRectForBounds:. - CPSearchFieldTest: Add tests verifying that the text cursor area of a search field overlaps neither its search button area nor, when the field holds text, its cancel button area.
Requires objj be installed, as well as ojunit, located at http://github.com/cappuccino/ojunit
Run individual tests using a command similar to the following:
objj ojunit/OJTestRunnerText.j cappuccino/Tests/Foundation/CPDateTest.j