Horizontal scroll bar on the subfile grid

Use this board to ask questions or have discussions with other Rich Displays users.
p.baum
New User
Posts: 6
Joined: Fri Sep 20, 2013 5:26 am
First Name: Patrick
Last Name: Baum
Company Name: Kuehne+Nagel
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by p.baum »

georg.merten wrote:Hi,

we tried this in a program but received an error msg from genie.js (firebug)
TypeError: a is null
anonymous()genie.js (line 1044)
anonymous()genie.js (line 1173)
...nged=true;d.designer.O[d.designer.f.screenId]=true;d.designer.p.I();return true}...

it appears when I click on a button and expected exfmt...
exactly...

So it will be solved in the next version?

Regards
Patrick
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Horizontal scroll bar on the subfile grid

Post by Scott Klement »

The error I'm getting is a little different

Code: Select all

TypeError: a.iScroll.D is not a function
The error does not occur in our development sources, but it does occur in the final sources that I would send to a customer. I need to look into it further before I can promise that it will be fixed in the next release.
SeanTyree
Profound User
Posts: 76
Joined: Fri Jan 11, 2013 6:11 pm
First Name: Sean
Last Name: Tyree
Company Name: US HealthWorks
State / Province: California
Zip / Postal Code: 91355
Country: United States
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by SeanTyree »

Scott, I noticed the following in the install notes for 4.6.5:
Add overlow x and overlow y properties to the Simple Container Layout.

After installing, I am not able to see these properties. Was this a mistake and planned for 4.6.6?

Sean
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Horizontal scroll bar on the subfile grid

Post by Scott Klement »

These options were added to the simple layout in 4.6.5.

If you've installed 4.6.5 and do not see them, try clearing your browser cache and re-loading the page.
SeanTyree
Profound User
Posts: 76
Joined: Fri Jan 11, 2013 6:11 pm
First Name: Sean
Last Name: Tyree
Company Name: US HealthWorks
State / Province: California
Zip / Postal Code: 91355
Country: United States
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by SeanTyree »

Thanks Scott, it's working now.
Gerd
New User
Posts: 11
Joined: Thu Sep 12, 2013 6:33 am
First Name: Gerd
Last Name: Kiefer
Company Name: VSB Bauer Software GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by Gerd »

Hi Scott,

if i've designed this in a display i have another problem: The vertical scrollbar is only visible at the right edge of the grid.
Is it possible to show the vertical scrollbar, even if the grid is on the left edge or in the middle range?

Thanks, Gerd
with kind regards,

Gerd
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Horizontal scroll bar on the subfile grid

Post by Scott Klement »

Hi Gerd,

If you are coding this on a desktop, please do not use the 'mobile scroller' technique. On a current release, you should instead use a simple layout with the 'overflow x' property set to 'scroll'. That will give you a horizontal scrollbar.

Starting with PUI 4.7.1 (and including all newer releases) when PUI sees a subfile inside a simple layout, it'll automatically move the vertical scrollbar from the grid onto the layout, so the scrollbar will always be visible. So using that technique should solve the problem you describe.

Let me know if it helps. (I'm not sure if I explained it well.)
Gerd
New User
Posts: 11
Joined: Thu Sep 12, 2013 6:33 am
First Name: Gerd
Last Name: Kiefer
Company Name: VSB Bauer Software GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by Gerd »

Hi Scott,

thank you very much, it works!
with kind regards,

Gerd
swushw
New User
Posts: 12
Joined: Thu Apr 11, 2013 5:58 pm
First Name: Shirley
Last Name: Wijaya
Company Name: US HealthWorks
State / Province: California
Contact:

Re: Horizontal scroll bar on the subfile grid

Post by swushw »

Hi Scott,

I am adding a column to an existing grid which makes the grid too wide to fit in the current container (panel). So I am working on adding a horizontal scroll bar on the grid. I have done the following:
• make sure the subfile is inside a 'simple container layout' widget
• the 'overflow x' property of the simple container layout is set to 'scroll'
• change the 'width' property of the layout to a smaller size (so that it's no longer too large for the screen).

However, when I set the 'width' property of the layout to a smaller size, the grid was resized to fit into the narrower layout. What did I do wrong?

I tried doing the same with a brand-new grid and I didn't have any issue.

Thanks,
Shirley
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Horizontal scroll bar on the subfile grid

Post by Scott Klement »

Make sure 'expand to layout' is turned off for your grid... that's all I can think of that would make it change based on the size of the container...

Does that help?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests