Comments (9)
so you have a default installation with no custom widths, and its not stretching to fit the container?
from openjs-grid.
I've made a few changes to the PHP class, changed the page count in the grid.js (From my other open issue) and use my own CSS stylesheet to match my app.
I wouldn't think any of my changes would have affected it, but I could be wrong. Let me know if theres any code snippets you need to see to be of help.
from openjs-grid.
Sure Ill check this out asap. Thanks!
from openjs-grid.
Okay. It seems like your code is fine. The page that I use the table on also has tabs that show/hide divs. The grid is inside one of those divs and it works fine if I move it outside that div on the same page, or to another page. Something about that div or tab script is interfering, but I don't know what.
What is a little odd is that it works fine after resizing a column.
from openjs-grid.
must be something messing it up initially, and then my equalize function is setting up right
from openjs-grid.
Maybe, I even tried calling the equalize function in grid.js after the _afterLoad() and before triggering loadComplete and it didn't fix it.
from openjs-grid.
Sorry for assaulting you with comments...but...I think the problem is how the grid responds when it is hidden. The tabs use display:none on all the tabs except the one that is open on page load. If I put the grid in a tab that is hidden at first, it doesn't size correctly. If I put it outside of the tabs completely or in the tab that is shown on page load it sizes perfectly.
I don't know if that counts as a bug in the code for the grid or the tabs or if its just a nagging technicality of working with display:none. Maybe there is a way the grid's code could be altered to compensate for it?
from openjs-grid.
So that makes sense in a way. If the grid is hidden, elements don't have width or height. The way to get around this is to use visible : hidden instead of display none. That probably doesn't quite solve your problem though. Ill try to play with a tab situation and see what happens
from openjs-grid.
this should be fixed in the latest version
from openjs-grid.
Related Issues (20)
- Drag & Drop Option in OpenJS Grid HOT 2
- No users table in sample.sql HOT 5
- Select drop-down to fill all rows on a column HOT 3
- Visible rows HOT 4
- Column width when grid is opend
- Support Chinese (or non-English language) HOT 1
- openJs-Grid Support For ASP.NET MVC
- No copyright in grid.php HOT 1
- Loading forever HOT 7
- populate an OpenJS grip based on the value HOT 1
- How to join multi tables with INNER JOIN to view desired columns from tables HOT 4
- undefined console.log(value, columnOpts, grid); HOT 6
- Conversion/update to PDO HOT 58
- Search Box issues and bugs
- Blank Row Allow HOT 1
- Grid class pass query instead of tablename HOT 2
- How to change and save column type image value in database HOT 4
- I am trying to achieve group view functionality as shown in picture can u help in that. Thanks in advance HOT 2
- how can i make this work with codeigniter?
- No database selected HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjs-grid.