Account for super-stealthy outline mode.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@718 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Label.java,v 1.7 2002/03/15 17:34:48 shaper Exp $
|
// $Id: Label.java,v 1.8 2002/04/30 01:57:47 mdb Exp $
|
||||||
|
|
||||||
package com.samskivert.swing;
|
package com.samskivert.swing;
|
||||||
|
|
||||||
@@ -203,6 +203,13 @@ public class Label implements SwingConstants
|
|||||||
layouts.add(layout);
|
layouts.add(layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if we have an outline color, we need to be two pixels bigger in
|
||||||
|
// both directions to account for stealthy, hack outline mode
|
||||||
|
if (_outlineColor != null) {
|
||||||
|
_size.width += 2;
|
||||||
|
_size.height += 2;
|
||||||
|
}
|
||||||
|
|
||||||
// create our layouts array
|
// create our layouts array
|
||||||
_layouts = new TextLayout[layouts.size()];
|
_layouts = new TextLayout[layouts.size()];
|
||||||
layouts.toArray(_layouts);
|
layouts.toArray(_layouts);
|
||||||
|
|||||||
Reference in New Issue
Block a user