Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7940539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:25:11+00:00 2026-06-03T23:25:11+00:00

I have a group with inside it 2 Graphics, I set the gap in

  • 0

I have a group with inside it 2 Graphics, I set the gap in the vertical layout of the group to 0 but there still is a gap of 1 pixel between the 2 graphics. Any idea how to get rid of this?

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <s:Group>
        <s:layout>
            <s:VerticalLayout gap="0"/>
        </s:layout>
        <s:Graphic height="100">
            <s:Path data="M 50 0 L 50 100 Z" height="100">
                <s:stroke>
                    <s:SolidColorStroke color="#333333"/>
                </s:stroke>
            </s:Path>
        </s:Graphic>
        <s:Graphic height="1">
            <s:Path data="M 0 0 L 100 0 Z" height="1">
                <s:stroke>
                    <s:SolidColorStroke color="#333333"/>
                </s:stroke>
            </s:Path>
        </s:Graphic>
    </s:Group>
</s:Application>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:25:13+00:00Added an answer on June 3, 2026 at 11:25 pm

    The simple answer to your question is that the gap seems to come from the explicit height you give to the first graphic. Simply remove it and the gap will be gone.

    The (IMO) better answer is that this code seems a bit convoluted for creating simple graphics.

    • There is no reason you should wrap each line in a Graphics class. You can extend Graphic to create a standalone, reusable graphic class though.
    • There is a Line class for drawing straight lines. Much easier than using Path

    If you absolutely need the VerticalLayout, you could rewrite that code like this:

    <s:Group>
        <s:layout>
            <s:VerticalLayout gap="0" horizontalAlign="center" />
        </s:layout>
        <s:Line height="100">
            <s:stroke>
                <s:SolidColorStroke color="#333333" />
            </s:stroke>
        </s:Line>
        <s:Line width="100">
            <s:stroke>
                <s:SolidColorStroke color="#333333" />
            </s:stroke>
        </s:Line>
    </s:Group>
    

    But if you don’t really need it for some reason, it can even be reduced to this:

    <s:Group>
        <s:Line height="100" horizontalCenter="0">
            <s:stroke>
                <s:SolidColorStroke color="#333333" />
            </s:stroke>
        </s:Line>
        <s:Line width="100" bottom="0">
            <s:stroke>
                <s:SolidColorStroke color="#333333" />
            </s:stroke>
        </s:Line>
    </s:Group>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have group of stored procedures with names like 'somename_%'. Are there any way
I have generated a group of scaffolds with edited code inside, but now I
I have a group of checkboxes that I only want to allow a set
I have a group of buttons that should act like toggle buttons, but also
I have a Model in Django. It has a Group and inside the group
can we have ExpandableListView inside ListView so that I can have group level first
APC lets you store data inside keys, but you cannot group these keys. So
Is there a way to create a css group inside of a css selector.
I have this situation were I need to include Persons inside a Group. For
I have a div. Inside the div is another group of divs that each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.