Giter Club home page Giter Club logo

Comments (2)

hiiamboris avatar hiiamboris commented on July 4, 2024

This is not the case.

You are mistaking default text width with center alignment.
Try instead:

view [
   text 200 right "Short" return
   text 200 right "Much longer text"
]

from red.

greggirwin avatar greggirwin commented on July 4, 2024

I was misled by a quick viz check as well. The original example was in a container, and looked correct. but adding the extra colors as @hiiamboris did shows what's going on even more.

view [
  group-box 3 [
    text blue white right "Before Stream: "
    beforeStreamDisplay: text blue white "None"
    button "Select file" [beforeStreamDisplay/text: (to string! request-file)]

    text blue white right "Delta Stream: "
    deltaStreamDisplay: text blue white "None"
    button "Select file" [deltaStreamDisplay/text: (to string! request-file)]
  ]
  panel 3 [
    text blue white right "Before Stream: "
    f-3: text blue white "None"
    button "Select file" [f-3/text: (to string! request-file)]

    text blue white right "Delta Stream: "
    f-4: text blue white "None"
    button "Select file" [f-4/text: (to string! request-file)]
  ] return
]

image

But if we make the first text longer, it becomes clear.

view [
  group-box 3 [
    text blue white right "XXXX Before Stream: "
    beforeStreamDisplay: text blue white "None"
    button "Select file" [beforeStreamDisplay/text: (to string! request-file)]

    text blue white right "Delta Stream: "
    deltaStreamDisplay: text blue white "None"
    button "Select file" [deltaStreamDisplay/text: (to string! request-file)]
  ]
  panel 3 [
    text blue white right "XXXX Before Stream: "
    f-3: text blue white "None"
    button "Select file" [f-3/text: (to string! request-file)]

    text blue white right "Delta Stream: "
    f-4: text blue white "None"
    button "Select file" [f-4/text: (to string! request-file)]
  ] return
]

image

When columns are aligned in containers, the offset is adjusted, but not the width.

from red.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.