Alexander Ljungberg
2b1b1ea33b
Fixed: CPScrollView setGlobalScrollerStyle: return value.
2012-12-12 17:45:59 +00:00
Ilya Kulakov
ee1c5478b1
Fix frame of CPScrollView is calculated incorrectly.
2012-09-03 03:41:14 +07:00
Aparajita Fishman
cae5486ec6
Added missing class checks in +initialize, regularized checking code
2012-06-28 12:05:18 -07:00
Aparajita Fishman
36bfc7c675
Fixed decode methods to return the correct defaults, removed unnecessary containsValueForKey and || with defaults
2012-04-24 10:15:19 +02:00
Aparajita Fishman
bd691d5307
Hopefully finally fixed the problem with CPScrollView/CPScroller initialization. Fixes #1485 .
2012-04-23 01:12:24 +02:00
Aparajita Fishman
9830b2b115
Subviews may not be accessed during initWithCoder. Fixes #1485 .
2012-04-22 23:13:58 +02:00
Alexander Ljungberg
f2571e6536
Don't draw a table corner view if there is no vertical scrollbar.
...
This could either be due to autohiding or they usage of overlay scrollbars. Not showing it matches Cocoa and makes sense because it takes up space for no reason without the scrollbar.
2012-03-18 17:56:20 +00:00
Alexander Ljungberg
bec8a4b1c6
Fixed: scroll views with a bezel border had two strange dots in the upper corners instead of a Lion-like bezel.
2012-03-18 16:56:04 +00:00
Alexander Ljungberg
028fb03ef1
Slightly optimise scroll view border drawing code.
2012-03-18 16:41:39 +00:00
Alexander Ljungberg
65aa08a9d9
Format code.
2012-03-18 16:38:51 +00:00
Jacek Galowicz
3b5aa1a2ab
CPScrollView: Documented delegate methods
2012-03-01 18:44:51 +01:00
Alexander Ljungberg
eacee00fc8
Merge branch 'master' of github.com:cappuccino/cappuccino
2012-02-08 15:58:00 +00:00
Alexander Ljungberg
fe70a5541e
Fixes #1450 : a scroll view with non hiding legacy scrollbars would crash if the document view had a size of 0 pixels in either dimension.
2012-02-08 15:52:59 +00:00
Randall Luecke
dd7d36da43
call layoutSubviews when the tableview lays out its subviews.
2012-02-02 19:34:11 -05:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Alexander Ljungberg
63c500c444
Fixed: overlay scroll knobs never quite reached the edge.
...
The calculation of the number of pixels outside of the clip view assumed fixed, space consuming scrollbars even when overlay scrollbars were used, leading CPScrollView to always think a few more pixels could be revealed.
2011-10-27 15:57:29 +01:00
Alexander Ljungberg
208c3fea35
Fix scroller gap for hidden overlay scrollers.
...
If there is no vertical scroller, or there is no horizontal scroller, due to autohiding or scroll view settings, a single visible overlay scroller should extend all the way to the edge of its dimension.
2011-10-27 14:44:19 +01:00
Alexander Ljungberg
e92a7825bf
Optimise bottom corner view in overlay scrolling mode.
...
In particular, there is no need to update nor even draw the bottom corner view when in overlay mode.
2011-10-27 13:35:55 +01:00
Alexander Ljungberg
98df7e1eb8
Refs #1373 . Improve documentation.
2011-10-27 11:51:10 +01:00
Alexander Ljungberg
eeab0cf1b2
Merge remote-tracking branch 'primalmotion/lionscrollview'
2011-10-25 17:05:03 +01:00
Antoine Mercadal
b37893d9bb
change names of class methods to [set]GlobalScrollerStyle
2011-10-25 17:14:14 +02:00
Alexander Ljungberg
6f4ecdfbd9
Merge remote-tracking branch 'primalmotion/lionscrollview'
...
Conflicts:
AppKit/CPScrollView.j
2011-10-25 15:54:16 +01:00
Antoine Mercadal
697921b486
autodetect is user computer is using legacy or overlay mode
2011-10-25 14:35:46 +02:00
Antoine Mercadal
2cfb171b38
support for system wide scroller style. Set default to legacy mode in info.plist
2011-10-25 12:39:51 +02:00
Antoine Mercadal
2742e3d77b
fix flashScrollers doesn't work
2011-10-25 12:11:11 +02:00
Alexander Ljungberg
35c7155983
Refs #1373 . Use legacy style scrollbars by default.
...
The Lion style scrollbars are inconvenient for users without a touch scrolling device, and we do not have a way to detect whether the user has such a device yet.
2011-10-24 23:51:18 +01:00
Alexander Ljungberg
b90a8a58fd
Fix some comments.
2011-10-24 23:42:44 +01:00
Antoine Mercadal
422e940bc7
use default knob style as default. logic.
2011-10-05 16:24:37 +02:00
Antoine Mercadal
6e4007adc0
add support for the different scroller knob styles
2011-10-05 11:27:32 +02:00
Antoine Mercadal
efdfd0db10
fix some bugs and update arts
2011-10-04 16:21:24 +02:00
Antoine Mercadal
d6412eec58
tidy up the CPScrollView class file
2011-10-04 14:36:08 +02:00
Antoine Mercadal
53a6d2de83
support for changing scroller styles
2011-10-04 14:05:02 +02:00
Antoine Mercadal
7fe990e9f6
keep scroller visible if mouse is over, even if timer fire
2011-10-03 21:15:21 +02:00
Antoine Mercadal
1a57d032b9
make CPScrollView acting like Mac OS X Lion ones
2011-10-03 21:07:46 +02:00
Alexander Ljungberg
59b302acde
Merge pull request #1177 from cacaodev/cappuccino
...
---
Adds -scrollViewWillScroll: and -scrollviewDidScroll: delegate methods to CPScrollView.
These methods are not in AppKit but exist in UIKit. Useful for lazy loading data in a view, for example a CPTableview.
Tested in the CPScrollView example.
Conflicts:
AppKit/CPScrollView.j
2011-07-17 22:05:55 -04:00
Aparajita Fishman
d7ef31c4f5
Documentation tweak
2011-05-17 10:54:52 -07:00
Randall Luecke
de08addfa1
Fix for grid lines not being drawn in the headers of table columns which were not originally exposed.
2011-03-28 21:10:59 -04:00
Brian Donovan
b69c25bc2a
Fix documentation typo.
2011-03-25 08:50:06 -07:00
cacaodev
4b9695ff50
cache respondsToSelector: ; Fire the timer only if both methods exists
2011-03-24 18:40:25 +01:00
cacaodev
a02b721944
CPScrollView: add -scrollView(Will|Did)Change: delegate methods.
...
CPScroller: send action when dragging starts instead of immediately on mouse down.
Test: added delegate methods to the top-left scroll view in CPScrollView example and log.
2011-03-19 10:17:12 +01:00
Klaas Pieter Annema
8e14d6cebc
unarchive corner and headerviews correctly
2011-03-04 08:15:54 +01:00
purem
536d012105
Fixed typo
2011-02-13 15:01:59 -08:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Randall Luecke
5f39046a52
Document setBorderType: for CPScrollView
2011-01-03 15:53:00 -06:00
Brian Donovan
6b7d636b0d
Follow tolmasky's suggestions.
...
- Fixes a bug in moveByOffset where we called CGPointMake with a CGPoint.
- Remove _moveToPoint: and just inline it where it was used.
2010-12-14 16:00:20 -08:00
Brian Donovan
9bf0edb5df
Implement CPScrollView scrollToBeginningOfDocument: and scrollToEndOfDocument:.
...
Also ensures that the home/end DOM keys were properly mapped to their Cocoa equivalents, so that home/end will trigger scrollToBeginningOfDocument:/scrollToEndOfDocument:.
2010-12-14 12:12:25 -08:00
Francisco Ryan Tolmasky I
2e9684e9a7
Fix for bottom corner view of CPScrollView being broken in CPCoding circumstances (normal coding, nib2cibing, Atlas, etc.).
...
Reviewed by me.
2010-11-03 10:37:51 -07:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Brian Donovan and Ross Boucher
2037ab9a5e
-[CPScrollView setContentView:] did not allow changing the content view.
2010-10-14 11:25:29 -07:00