Giter VIP home page Giter VIP logo

board's People

Contributors

alvarezguille avatar artur- avatar diegocardoso avatar hezamu avatar johannesh2 avatar legioth avatar marcushellberg avatar ollesetta avatar peppe avatar rogozinds avatar svenruppert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

board's Issues

Change default sizes

I want to change the default transition sizes using Java.

I have two components places next to each other, and they become under each others only when the width is too small (600px). I want to be able to let them slip under each others starting at 900px.

licensing.html is missing

The CVAL header in each source file refers to the file licensing.html distributed with this software, but no such file can be found in any Maven artefact. There is a LICENSE.txt in the GitHub repository, but that's not the name referred to in the source file header, nor is it "distributed with this software".

User should be notified if they are missing the vaadin-board-precompiled dependency

Currently it's possible to compile and run an application with having only the vaadin-board maven dependency. If you forget to add the precompiled module, you get only weird client-side exceptions and strange behavior in the app, but no clear message/warning why this might be happening. Some helpful guiding message at least in runtime would be appreciated.

How to deal with sizefull?

1.0.0-alpha5

Here is the code:

        CssLayout l1 = new CssLayout();
        l1.addStyleName("red");
        l1.setSizeFull();
        CssLayout l2 = new CssLayout();
        l2.addStyleName("blue");
        l2.setSizeFull();

        Board b = new Board();
        b.addRow(l1, l2).setSizeFull();
        b.setSizeFull();

        setContent(b);

And theme:

  .red {
    background-color: red;
  }

  .blue {
    background-color: blue;
  }

When screen size is small enough, l2 disappears totally.

Components not displayed properly in IE11

I am using the default bakery demo project
vaadin board 1.1.0-beta1 or 1.0.1 or 1.0
vaadin 8.1.6 or 8.2.0beta
IE version 11.0.9600.18816
1920x1080 windows screen

The same demo runs perfectly in chrome or firefox.
I have contact vaadin sales ppl, they asked me register an issue here.

Including Board breaks other components on iPad + Safari and Android + Firefox

Board Version: 1.1.0-beta1 with Vaadin Framework 8.6.1

Test UI:

public class MyUI extends UI {

	@Override
	protected void init(VaadinRequest vaadinRequest) {
		final VerticalLayout layoutwithBoard = new VerticalLayout();

		Board board = new Board();
		Row row = new Row();
		final CheckBox cbx = new CheckBox("Just Another Box");
		RadioButtonGroup<String> single = new RadioButtonGroup<>("Single Selection");
		single.setItems("Single", "Sola", "Yksi");
		board.addRow(row);
		layoutwithBoard.addComponents(cbx, single, board);
		setContent(layoutwithBoard);
	}

	@WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
	@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
	public static class MyUIServlet extends VaadinServlet {
	}
}

Any components here are not reacting as expected when accessing the page on an iPad with Safari, as soon as a Board is added to the layout (even an empty one). Especially radio buttons and checkboxes are only randomly selectable with a value change not always arriving in the backend.

The issue is present on iOS with Safari (iOS 12.1), Firefox (14.0), Chrome (70.0.3538.75) as well as all others since iOS requires apps to solely use Apple's WebKit engine. On Android with Firefox (63.0.2) the issue is also present.

Firefox hangs

Using the Java API, on Firefox the log shows this upon login (so upon Board constructor being invoked):
Oct 05, 2017 12:45:13 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN INFO: Requested resource [/VAADIN/frontend/es6/webcomponentsjs/webcomponents-lite.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

When selecting the View that contains the Board, the browser hangs and the page is never displyed.

Using Chrome, the page is displayed, but there are more logs:
Oct 05, 2017 12:47:49 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN INFO: Requested resource [/VAADIN/frontend/es6/vaadin-board/vaadin-board.html] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder. Oct 05, 2017 12:47:49 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN INFO: Requested resource [/VAADIN/frontend/es6/vaadin-board/vaadin-board-row.html] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

Support for OSGI

It's currently not possible to deploy vaadin-board on an OSGi based server, such as Liferay 7.x

Clean maven build fails: "Unable to find suitable version for webcomponentsjs"

When running a clean build with mvn clean install it fails with the following error:

ERROR] bower                                     ECONFLICT Unable to find suitable version for webcomponentsjs
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.088 s
[INFO] Finished at: 2017-07-17T11:42:40+03:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:yarn (yarn install) on project vaadin-board-precompiled: Failed to run task: 'yarn ' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

To reproduce the issue, manually delete the precompiled/src/main/frontend/bower_components folder (if exists). mvn clean does not delete it automatically.

Set Spacing for board?

More of an enhancement than an issue really...

But feel it would be useful to be able to have a board.setSpacing method, which has similar functionality to layout setSpacing methods, essentially automatically adding some padding.

At the moment, when you have 2 grid side by side, or 2 similar charts side by side, they seem to blend into one, and its hard to know where one starts and the next begins.

Vaadin TabSheet does not resize correctly.

Vaadin TabSheet does not resize correctly when going from small viewport size to a big one
Here is an example:

Board board = new Board();
       board.setSizeFull();
       TabSheet tabsheet = new TabSheet();

       // Create the first tab
       tabsheet.addTab(new Label("FOO"), "FOO");
       tabsheet.addTab(new Label("BAR"),"BAR");
       tabsheet.addTab(new Label("BAx")," BAx");
       tabsheet.addTab(new Label("BAz")," BAz");

       TabSheet tabsheet2 = new TabSheet();

       // Create the first tab
       tabsheet2.addTab(new Label("FOO"),"FOO");
       tabsheet2.addTab(new Label("BAR"),"BAR");

       TabSheet tabsheet3 = new TabSheet();
       tabsheet3.addTab(new Label("FOO"),"FOO");
       tabsheet3.addTab(new Label("BAR"),"BAR");

       TabSheet tabsheet4 = new TabSheet();
       tabsheet4.addTab(new Label("FOO"),"FOO");
       tabsheet4.addTab(new Label("BAR"),"BAR");

       board.addRow(tabsheet,tabsheet2, tabsheet3, tabsheet4);

       setContent(board);

precompiled board fails to load in safari 10

Console shows error:

SyntaxError: Cannot declare a let variable twice: 'a'.

Reported Polymer/polymer-cli#946

Disabling js minify seems to fix it but that would penalize all other es6 browsers.
This could be fixed from framework side by serving ES5 to safari10

Boxes are displayed at the wrong position on IE11

Vaadin Framework 8.1.0.rc1
Vaadin Board 1.0.0.beta1

When creating a demo Vaadin (Java) application using the Row Types example, the boxes' layout is wrong on IE11.

Both vaadin-board and vaadin-board-precompiled are a dependency.

The results are similar to the following pictures.
On IE:
vaadinboard_ie11

On FF:
vaadinboard_firefox

Nested Boards/Row are not supported.

  1. It's not clear right now, should user use nested rows or nested boards. In WC you should use nested rows, (you can use nested boards, but the result will be the same, except extra html tag in the DOM).

  2. The exception is thrown in both cases (when using nested rows or nested boards).

Layouting in IE11 is consistent

Example:

        Board board = new Board();
        board.setWidth(700, Unit.PIXELS);
        Button btn1 = new Button("Button 1");
        Button btn2 = new Button("Button 2");
        Button btn3 = new Button("Button 3");
        Button btn4 = new Button("Button 4");
        board.addRow(btn1, btn2, btn3, btn4);
        setContent(board);

Should be two rows with two items in them. Works as expected in FF and Chrome.
In IE 11 has 4 items in one row.

Also has problems with other configurations.

Project can't be built

Running
mvn clean install
on a newly cloned project does not work.

There are a lot of

Running com.vaadin.addon.board.testbenchtests.RowRemoveIT
java.io.FileNotFoundException: config/testbench.properties (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at com.vaadin.addon.board.testUI.UIFunctions.readProperties(UIFunctions.java:18)
	at com.vaadin.addon.board.testUI.UIFunctions.readTestbenchProperties(UIFunctions.java:31)
	at com.vaadin.addon.board.testbenchtests.AbstractParallelTest.setUp(AbstractParallelTest.java:32)

PDF/Print Request

It would be great to use the board functionality to create reports that could be exported to PDF, or printed.

Is this currently possible? Are stylings and links preserved during say a PDF print in chrome?

Component Captions aren't added when adding components

When adding a component to a row with a caption, the caption isn't added and displayed (doesn't seem to appear in the dom either.

To recreate:
`board = new Board();

Label l = new Label("Test Label Value");
l.setCaption("Test Label Caption");

Row row = new Row();
row.addComponent(l);

board.addRow(row);`

The components caption is not added along with the component itself.
When browsing through the generated html, the caption element doesn't appear to be added at all.

Use Case:
When adding components to the board (grids, maps, etc) it would be helpful to be able to caption them.

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.