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

  • Home
  • SEARCH
  • 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 3699770
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:08:36+00:00 2026-05-19T05:08:36+00:00

topLeftView: SC.ScrollView.design({ backgroundColor: #DADFE6, childViews: ‘labLabel labMembersLabel’.w(), labLabel: SC.SourceListGroupView.design({ layout:{top: 0, left: 0, width:

  • 0
  topLeftView: SC.ScrollView.design({
    backgroundColor: "#DADFE6",
    childViews: 'labLabel labMembersLabel'.w(),


    labLabel: SC.SourceListGroupView.design({
      layout:{top: 0, left: 0, width: 100, height: 100},
      value: "LABORATORY",
      fieldLabel: "LAB",
      backgroundColor: "white"

    }),

    labMembersLabel: SC.LabelView.design({
      layout: {top: 100, left: 0, width: 100, height: 100},
      value: "LAB MEMBERS"
    })
  }),

Neither labLabel our LabMembersLabel appears… What am I missing?

  • 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-05-19T05:08:37+00:00Added an answer on May 19, 2026 at 5:08 am

    ScrollView is a special view, in that it does not use the childViews array, but instead expects to have a single view ‘contentView’ as you can see here:

    https://github.com/sproutcore/sproutcore/blob/master/frameworks/desktop/views/scroll.js#L42

    With this view, it will always monitor the height/width, and automatically, add scroll bars if the contentView gets too big. Scroll Views are usually used to hold listView’s which can get very long.

    SC.ScrollView.design({
      contentView: SC.ListView.design({
        contentBinding: 'App.myContentArrayController'
      })
    })
    

    What you want todo is to is something like:

    SC.ScrollView.design({
      contentView: SC.View.design({
        layout: {...},
        childViews: 'labLabel labMembersLabel'.w(),
    
        labLabel: SC.SourceListGroupView.design({ ... }),
    
        labMembersLabel: SC.LabelView.design({ ... })
      })
    })
    

    If the contentView is not a ListView (or another view that controls it’s own layout), it is important to provide a layout, otherwise the ScrollView will not be effective.

    PS. As a side note, this is not how to use a SC.SourceListGroupView. These are only for use to set as an ‘exampleView’ on a SC.SourceListView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a SlimDX based game editor. I have a DeviceContext instance which
I have created a custom myViewController class and it has the default view ,

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.