Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grid width not filling out ngCanvas #401

Closed
bradrice opened this issue May 8, 2013 · 15 comments
Closed

grid width not filling out ngCanvas #401

bradrice opened this issue May 8, 2013 · 15 comments

Comments

@bradrice
Copy link

bradrice commented May 8, 2013

I have this set in my css:

.gridStyle {
border: 1px solid rgb(212,212,212);
height: 600px;
/max-height: 800px;/
width: 750px;
margin: 1em;
}

For some reason I have an empty space at the right of the grid before the scroll bar. It seem like regardless I do it will not fill out. If I inspect the element I get this being specified:

.ng1368027839598 .ngRow {
width: 700px;
}

Why does it subtract 50 pixels from what I have specified? Can I over-ride it so the columns go the entire way across?

@AlexRoscoe
Copy link

I've been finding the same problem. Driving me mad

@jonricaurte
Copy link
Contributor

@AlexRoscoe @bradrice Can you try with the latest version? It's pointing at the 2.0.7 branch.

http://plnkr.co/edit/dyA446?p=preview

@jonricaurte
Copy link
Contributor

This should be fixed in the latest version.

@dotcom9
Copy link

dotcom9 commented Aug 5, 2013

@jonricaurte This is still happening in 2.0.7. The above plunker doesn't show any data. As far as I can see, the grid is setting a fixed 100px to the width property of the .ngCanvas element. It initially only renders the columns that fit in that width. If you scroll horizontally, it dynamically adds other columns, but the narrow viewport remains. Clicking on a column header displays the grid as configured.

image

For some reason, this doesn't happen on all grids in this application even though they are configured in a similar way.

@wjdavis5
Copy link

I have the exact same issue. Has this been resolved?

@ianlyons
Copy link

ianlyons commented Jul 3, 2014

Same issue as the OP, although it only manifests when the parent controller has the $modal service injected.

@jlnery-zz
Copy link

I have the same problem.

The width of the ngCanvas is subtracted from 1069 (of the grid) to 1052.

tss

Any ideias?

@c0bra
Copy link
Contributor

c0bra commented Sep 2, 2014

@jlNery which version are you using? How is the grid being displayed, directly on the page? In a modal? What browser?

@jlnery-zz
Copy link

@c0bra
Version: 1.2.14
Directly on page.
Chrome and Mozilla

@jlnery-zz
Copy link

@c0bra sorry: version 2.0.7

@PaulL1
Copy link
Contributor

PaulL1 commented Sep 11, 2014

What OS? There are some funny issues with OSX in 3.0, perhaps that's related here as well? I think we'll have to take a collection to buy @c0bra a MacBook. :-)

@jlnery-zz
Copy link

Windows ! :(

@adammatthewsmith
Copy link

Still seeing this in v3.0.7 on Windows for Chrome, FF, and IE. Basically the same screenshot as jlnery. Maybe a scroll-bar width calculation issue?

@sshkuratoff
Copy link

I'm still seeing this too but like this... using v3.0.7 MacOSx Chrome. It fixes if I resize the window. It's fine if they are all on one page but I'm trying to move my data tables into tabs. The first grid tab I show is sized correctly and when switching to the other view I get this issue.
screen shot 2016-03-31 at 1 15 24 pm

@poojacmore
Copy link

poojacmore commented Jun 5, 2018

I am also facing same problem only on Chrome.
Any lead on how to fix this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests