Scroll bars

Hi

I want some content to have a vertical scroll bar by default, but no vertical scroll bar.

I’ve made a style with extended attributes:

overflow-x: hidden
overflow-y: scroll

and applied it to my div, which should give me what I want – except that Freeway overrides the style sheet by sticking its own overflow setting into the

tag (and Freeway doesn’t allow the separate x and y control that I need).

Any help much appreciated.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Jeff,
Try this;

  1. Select the Page/ HTML Markup menu item
  2. Select Before end Head from the Insert menu
  3. Paste the following code into the dialog;
<style type="text/css">
<!--
#myItem { overflow-x: hidden !important; overflow-y: scroll !important }
-->
</style>
  1. Change ‘myItem’ for the id of the layer you are working with
  2. OK the dialog and preview

Regards,
Tim.

On 8 Feb 2010, at 10:34, jeff wrote:

Hi

I want some content to have a vertical scroll bar by default, but no
vertical scroll bar.

I’ve made a style with extended attributes:

overflow-x: hidden
overflow-y: scroll

and applied it to my div, which should give me what I want – except
that Freeway overrides the style sheet by sticking its own overflow
setting into the

tag (and Freeway doesn’t allow the separate x
and y control that I need).

Any help much appreciated.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 8/2/10 (at 05:34 -0500) jeff said:

I want some content to have a vertical scroll bar by default, but no
vertical scroll bar.

Rather than make a style and apply it to the layered object (div),
you could try selecting the div and add an extended attribute
directly.

Or simply select the item (I’m assuming it is an HTML box) and use
the Inspector palette to set Overflow to Scroll.

I’m not certain this will do what you want, but it is worth trying.
And it makes use of Freeway’s featureset rather than sneaking the
behaviour through the back door, as it were. :slight_smile:

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Keith,

On 8 Feb 2010, at 11:16, Keith Martin wrote:

Rather than make a style and apply it to the layered object (div),
you could try selecting the div and add an extended attribute
directly.
I tried this but as Freeway writes the overflow attribute as an inline
style you would need to replicate the entire style to get it to work
(position, dimensions, z-index, etc). This would then lock you out
from moving or visually adjusting the element in Freeway’s design
view. We’ve been there with the Source Code Snooper action and it’s
not pretty!

Or simply select the item (I’m assuming it is an HTML box) and use
the Inspector palette to set Overflow to Scroll.
This works but sets the overflow for both the x and y axis at the same
time. The original issue called for just displaying the vertical
scroll bar.

I’m not certain this will do what you want, but it is worth trying.
And it makes use of Freeway’s featureset rather than sneaking the
behaviour through the back door, as it were. :slight_smile:
I agree that extending the item would have been best but it just isn’t
possible unfortunately. Another clean solution would have been to
create an action to apply these extended styles to the div and merge
them with the existing ones.
Regards,
Tim.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the suggestions.

Tim is right about what I need.
But do either of you have any experience of the Remove DIV Style action I spotted at ActionsForge?

http://actionsforge.com/actions/view/124-remove-div-style

I’ll give it a try and see if I can remove the automatically-generated inline style that way.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just a quick update: Remove DIV Style worked perfectly.

First, I had a quick look at the code as it was before I applied the action to the DIV. Then I added all the inline style to the Freeway style I was using to add overflow-x: hidden to that DIV. Result is, DIV looks as it did, and with overflow doctored as I wanted.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options