mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Replaced scrollview change with one that is easier to understand.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27053 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32e9a3017a
commit
d71b76e768
3 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-11-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSScrollView.m (-setContentView:): Replaced last change
|
||||
with one inside of setContentView:.
|
||||
* Source/NSView.m (-setFrame:): One more adjustment for bounds
|
||||
transformation.
|
||||
|
||||
2008-11-14 00:40-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSScrollView.m: Correct issue with tableviews when
|
||||
|
|
|
@ -236,8 +236,10 @@ static float scrollerWidth;
|
|||
NSView *docView = [aView documentView];
|
||||
|
||||
[_contentView removeFromSuperview];
|
||||
[self addSubview: aView];
|
||||
// This must be done after adding it as a subview,
|
||||
// otherwise it will get unset again.
|
||||
_contentView = aView;
|
||||
[self addSubview: _contentView];
|
||||
|
||||
if (docView != nil)
|
||||
{
|
||||
|
@ -1519,9 +1521,7 @@ static float scrollerWidth;
|
|||
[content setFrame: frame];
|
||||
}
|
||||
|
||||
// reset the content view...
|
||||
[self setContentView: content];
|
||||
_contentView = content;
|
||||
}
|
||||
|
||||
if (hScroller != nil && _hasHorizScroller)
|
||||
|
|
|
@ -1104,7 +1104,15 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
{
|
||||
if (_is_rotated_or_scaled_from_base == YES)
|
||||
{
|
||||
[self _updateBoundsMatrix];
|
||||
//[self _updateBoundsMatrix];
|
||||
NSAffineTransform *matrix;
|
||||
NSRect frame = _frame;
|
||||
|
||||
frame.origin = NSMakePoint(0, 0);
|
||||
matrix = [_boundsMatrix copy];
|
||||
[matrix invert];
|
||||
[matrix boundingRectFor: frame result: &_bounds];
|
||||
RELEASE(matrix);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue