1 pixel border around canvas

16 views
Skip to first unread message

Gareth Murfin

unread,
Jul 26, 2016, 11:52:52 AM7/26/16
to CodenameOne Discussions
When I fill a canvas entirely with black, I notice there is a white border all the way around, looks like about 1 pixel, is there a way to get rid of this?

Steve Hannah

unread,
Jul 26, 2016, 11:59:22 AM7/26/16
to codenameone...@googlegroups.com
Use the component inspector in the simulator to track down which container has margin/padding applied.   Then set margin/padding to 0.

Steve

On Tue, Jul 26, 2016 at 8:52 AM, Gareth Murfin <gareth...@gmail.com> wrote:
When I fill a canvas entirely with black, I notice there is a white border all the way around, looks like about 1 pixel, is there a way to get rid of this?

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8db6d3e7-93aa-4af3-99a2-4b1955c43d22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Gareth Murfin

unread,
Jul 26, 2016, 12:50:04 PM7/26/16
to CodenameOne Discussions
Works great thanks!


On Tuesday, July 26, 2016 at 11:59:22 PM UTC+8, Steve Hannah wrote:
Use the component inspector in the simulator to track down which container has margin/padding applied.   Then set margin/padding to 0.

Steve
On Tue, Jul 26, 2016 at 8:52 AM, Gareth Murfin <gareth...@gmail.com> wrote:
When I fill a canvas entirely with black, I notice there is a white border all the way around, looks like about 1 pixel, is there a way to get rid of this?

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages