TouchMenu component

Hi All,

Sorry for this necropost, but i have nearly the same question that Chethan asked 3 years ago: How could I change the horizontal scroll into a vertical scroll ?

Thanks

Hi.

This is not so much a bring back the dead post as I did update the component just a couple months ago.

he Change from Horizontal to Vertical would basically require the client widget code to be rewritten to handle sizes and directions in a different order.

I didn’t think about this at all when creating the component so the easiest way would be to add an Enhancement issue to GitHub and wait for me to get it done. (I think I should have time for this in the near future)

The second way would be to basically change any X to Y, left to top and flip the Column and Height usages to Row and Width in the TouchMenuWidget class.

Hi.

Finally got the new version 1.1.0 released with the possibility to choose horizontal or verticall scrolling.
Had a problem a month ago as my laptops gpu suddenly died and the machine wouldn’t boot anymore.

Any issues that come up just post them to https://github.com/caalador/TouchMenu/issues

  • Mikael

Hi
I using TouchMenu V1.1.0 after updating my widgetset, the background of my TouchMenubutton is removing.
Help please

Due to freeing the button sizes they now do not have the backgrounds set.
If you want to use the ones that I have in the demo you’ll need to add to your theme:

.touch-menu-button { color: whitesmoke; font-weight: bold; text-shadow: 3px 3px 2px black; background-image: url(images/TouchButton-50x50.png); background-repeat: no-repeat; background-position: center; } And copy the TouchButton-50x50.png or 100x100 or 150x150 from:

https://github.com/caalador/TouchMenu/tree/master/touchmenu-demo/src/main/webapp/VAADIN/themes/demo/images

And put them in your theme.

This was due to it being easier to actually handle the buttons and the defaults were hard to change in the old version.

Thanks you Mikael
it works