vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

[grid] sort icon is cutoff by column selector #6894

Open vaadin-bot opened 9 years ago

vaadin-bot commented 9 years ago

Originally by spungin


See screen shot for details. Column to the right is sorted and their is no way to 'scroll'. It seems the width calculation does not take the column picker menu into account.


Imported from https://dev.vaadin.com/ issue #18333

vaadin-bot commented 9 years ago

Originally by spungin


Attachment added: Screen+Shot+2015-06-23+at+6.40.11+PM.png (94.1 KiB) Screen Shot 2015-06-23 at 6.40.11 PM.png https://trac-attachments.vaadin.com/trac/18333/Screen+Shot+2015-06-23+at+6.40.11+PM.png screenshot

stale[bot] commented 6 years ago

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

glebfox commented 5 years ago

Hi,

Vaadin 8.8.3, the issue is still reproduced.

When there is no vertical scroll, then sort icon of the last column if overlapped by grid sidebar button (aka Column Selector)

image image

import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Grid;
import com.vaadin.ui.UI;
import com.vaadin.ui.themes.ValoTheme;

import javax.servlet.annotation.WebServlet;
import java.util.Arrays;
import java.util.List;

@Theme(ValoTheme.THEME_NAME)
public class MyUI extends UI {

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        List<Person> people = Arrays.asList(
                new Person("Nicolaus Copernicus", 1543),
                new Person("Galileo Galilei", 1564),
                new Person("Johannes Kepler", 1571));

        Grid<Person> grid = new Grid<>();

        grid.setItems(people);
        grid.addColumn(Person::getName).setCaption("Name").setHidable(true);
        grid.addColumn(Person::getBirthYear).setCaption("Year of birth").setHidable(true);

        grid.setSizeFull();

        setContent(grid);
    }

    private class Person {
        private final String name;
        private final int birthYear;

        public Person(String name, int birthYear) {
            this.name = name;
            this.birthYear = birthYear;
        }

        public String getName() {
            return name;
        }

        public int getBirthYear() {
            return birthYear;
        }
    }

    @WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
    @VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
    public static class MyUIServlet extends VaadinServlet {
    }
}
stale[bot] commented 4 years ago

Hello there!

We are sorry that this issue hasn't progressed lately. We are prioritizing issues by severity and the number of customers we expect are experiencing this and haven't gotten around to fix this issue yet.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!