Code Monkey home page Code Monkey logo

fancygrid's People

Contributors

andywhite37 avatar fponticelli avatar mlms13 avatar

Watchers

 avatar  avatar  avatar  avatar

fancygrid's Issues

A fixed height is required

If you specify a height (in the CSS) greater than the height of your table, there is no way to put a border around only the table (or make the container shrink to only the required space, etc). max-height isn't an option, because then all of the inner items are treated as 0 height, and it doesn't know how to absolutely position any of the cell heights.

Prefix classes with fg-

Classes like row have screwy margins, thanks to Bootstrap. It's not hard to imagine that left, right, view, column, and cell are also styled globally by various frameworks. Other Fancy* libraries generally prefix class names with some fancy-specific letters, which will help us avoid conflicts.

Call stack error

This is for the new selection code in @fponticelli's fork.

I'm seeing this error in the store data hub table when navigating around with the keyboard:

bundle.js:2061 Uncaught RangeError: Maximum call stack size exceeded
    at fancy_Grid.vOffset (bundle.js:2061)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)
    at fancy_Grid.vOffset (bundle.js:2068)

Here is the section of compiled .js code referenced above:

	,assignVOffset: function(f) {
		var _gthis = this;
		if(null != f) {
			return f;
		}
		var cache = new fancy_core_IntCache();
		this.caches.push(cache);
		return function(row) { // LINE 2061
			if(row == 0) {
				return 0;
			}
			if(cache.cache[row] != null) {
				return cache.cache[row];
			}
			var v = _gthis.vOffset(row - 1) + _gthis.vSize(row - 1); // ERROR HERE?
			cache.cache[row] = v;
			return v;
		};
	}

Optionally recalculate cell sizes on window resize

In our app, we have an initial state with only one column of data. Those cells have a width of 100%. When the browser width is increased, we snap to a different breakpoint, and the table is given more width, however the 100% cells still have a fixed width (set by FancyGrid) that reflects their width in the smaller table.

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.