comparison mac/dw.m @ 1566:035bc006afbe

Experimental change... halfway between min and max for tree controls.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 20 Jan 2012 18:47:10 +0000
parents d84a690448c3
children d6e17c8f4de2
comparison
equal deleted inserted replaced
1565:007ed833ac79 1566:035bc006afbe
3633 thisheight = _DW_SCROLLED_MAX_HEIGHT; 3633 thisheight = _DW_SCROLLED_MAX_HEIGHT;
3634 } 3634 }
3635 /* Tree */ 3635 /* Tree */
3636 else if([ object isMemberOfClass:[DWTree class] ]) 3636 else if([ object isMemberOfClass:[DWTree class] ])
3637 { 3637 {
3638 thiswidth = _DW_SCROLLED_MAX_WIDTH; 3638 thiswidth = (int)((_DW_SCROLLED_MAX_WIDTH + _DW_SCROLLED_MIN_WIDTH)/2);
3639 thisheight = _DW_SCROLLED_MAX_HEIGHT; 3639 thisheight = (int)((_DW_SCROLLED_MAX_HEIGHT + _DW_SCROLLED_MIN_HEIGHT)/2);
3640 } 3640 }
3641 /* Any other control type */ 3641 /* Any other control type */
3642 else if([ object isKindOfClass:[ NSControl class ] ]) 3642 else if([ object isKindOfClass:[ NSControl class ] ])
3643 nsstr = [object stringValue]; 3643 nsstr = [object stringValue];
3644 3644