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

2.0.7 #511

Merged
merged 41 commits into from
Jul 2, 2013
Merged

2.0.7 #511

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2c10b5b
Removing all borders. Fixing a few width issues.
jonricaurte Jun 25, 2013
11a25b3
Fix for travis ci
jonricaurte Jun 25, 2013
449f77f
Undoing maintain fix.
jonricaurte Jun 25, 2013
baa0dbc
Fixes and improvements in configureColumnWidths (note, the changes on…
Jun 25, 2013
104c192
Bugfixes in ng-grid-flexible-height
Jun 25, 2013
f188af6
Danish i18n
Jun 25, 2013
bf6e6da
Merging ebbe-brandstrup branch with 2.0.7
jonricaurte Jun 26, 2013
9fb3ed5
Updating build
jonricaurte Jun 26, 2013
ccbdbfb
Bugfix: getInstanceType broken in IE
c0bra Jun 26, 2013
cdf91b1
Fixed cell navigation
jonricaurte Jun 26, 2013
5e823dd
Updating build.
jonricaurte Jun 26, 2013
d7fb194
Fix for #436. Thanks @swalters
jonricaurte Jun 27, 2013
d2e8969
Updating to bower.json
jonricaurte Jun 27, 2013
feab97e
When column changes, grid rebuilds instead of build styles.
jonricaurte Jun 27, 2013
4e4d9a8
Fixed bug for when grid is initially grouped.
jonricaurte Jun 27, 2013
b496c87
deleting component.json from 2.0.7
jonricaurte Jun 27, 2013
7f63979
Fixed resizing columns issue.
jonricaurte Jun 28, 2013
a4c42b4
Added column pinning classes back.
jonricaurte Jun 28, 2013
0bcb4d1
Add check for if column is being resized so we dont reconfigure colum…
jonricaurte Jun 28, 2013
f4af3dd
Fixed adjusted column width resetting upon data update
nuclearghost Jun 28, 2013
fe10ac7
Merge branch 'nuclearghost-master' into 2.0.7
jonricaurte Jun 29, 2013
119a3ce
Making fixes for #341 #298 #397
jonricaurte Jun 29, 2013
24f1dfb
Reverting back the merge made earlier.
jonricaurte Jun 29, 2013
844039e
Fixing travis ci build.
jonricaurte Jun 29, 2013
e322721
Should fix totalServerItems count issue.
jonricaurte Jun 29, 2013
a7326ca
Total server items by default will be set to 0.
jonricaurte Jun 29, 2013
e2e2f23
should show the total number in the grid.
jonricaurte Jun 29, 2013
5863c9d
Adding enableCellEditOnFocus for #521
jonricaurte Jul 1, 2013
4338ef6
Rearranging if statement.
jonricaurte Jul 1, 2013
8101c46
Fixed issue #520. Added flag for when user changed column widths.
jonricaurte Jul 1, 2013
a8508db
Fix for #522
jonricaurte Jul 1, 2013
5c84c13
Fix for #523
jonricaurte Jul 1, 2013
7b390e3
Ensure columns keep their position in sortInfo
r7lemieux Jul 1, 2013
7bb943a
Listen to change of sortInfo so that external sorting is enabled, not…
r7lemieux Jul 1, 2013
4fe1f17
Merge branch 'sortInfoIndex' of git://github.com/r7lemieux/ng-grid in…
jonricaurte Jul 2, 2013
a56d52a
Merge branch 'r7lemieux-sortInfoIndex' into 2.0.7
jonricaurte Jul 2, 2013
5fb159f
Merge branch 'listenToSortInfo' of git://github.com/r7lemieux/ng-grid…
jonricaurte Jul 2, 2013
c3f2b48
Merge branch 'r7lemieux-listenToSortInfo' into 2.0.7
jonricaurte Jul 2, 2013
e52e21f
Fixed bug with search. Fixed broken merge from sortinfo.
jonricaurte Jul 2, 2013
58bca90
Fix for #279
jonricaurte Jul 2, 2013
1e51a11
Fixed issue #465
jonricaurte Jul 2, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "ng-grid",
"version": "2.0.7",
"main": ["./ng-grid.min.css", "./build/ng-grid.min.js"]
}
430 changes: 287 additions & 143 deletions build/ng-grid.debug.js

Large diffs are not rendered by default.

372 changes: 246 additions & 126 deletions build/ng-grid.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/ng-grid.min.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions component.json

This file was deleted.

2 changes: 0 additions & 2 deletions ng-grid-2.0.6.min.js

This file was deleted.

430 changes: 287 additions & 143 deletions ng-grid-2.0.6.debug.js → ng-grid-2.0.7.debug.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions ng-grid-2.0.7.min.js

Large diffs are not rendered by default.

46 changes: 36 additions & 10 deletions ng-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,36 @@
overflow: auto;
min-height: 20px;
}
.ngViewport:focus {
outline: none;
}
.ngCanvas {
position: relative;
}
.ngVerticalBar {
position: absolute;
right: 0;
width: 0;
}
.ngVerticalBarVisible {
width: 1px;
background-color: #d4d4d4;
}
.ngHeaderContainer {
position: relative;
overflow: hidden;
font-weight: bold;
background-color: inherit;
}
.ngHeaderCell {
border-right: 1px solid #d4d4d4;
border-left: 1px solid #d4d4d4;
position: absolute;
top: 0;
bottom: 0;
background-color: inherit;
}
.ngHeaderCell.pinned {
z-index: 1;
}
.ngHeaderSortColumn {
position: absolute;
overflow: hidden;
Expand All @@ -62,9 +75,6 @@
.ngNoSort {
cursor: default;
}
.ngHeaderCell:first-child {
border-left: 0;
}
.ngHeaderButton {
position: absolute;
right: 2px;
Expand Down Expand Up @@ -132,6 +142,24 @@
border-width: 6.5px 4.5px 0 4.5px;
border-color: #4d4d4d transparent transparent transparent;
}
.ngPinnedIcon {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAmElEQVQoU33PQapBURjA8UtkwJuaWYGSgfQWYBMvczPmTCzAAGVuaA228BZhRCkDGSmE31FucuRfvzq3vr5zT/JSjSU7DsypEPXDkDVn2hSIytJhw4kWGaLCxgHh2gt/RBuLzNhz5caWPjnSqqw4EraFfwznf8qklWjwy4IRTerkiQoPGtPl40OehcEJvcfXl8LglLfBJLkDcMgbgHlHhK8AAAAASUVORK5CYII=);
background-repeat: no-repeat;
position: absolute;
right: 5px;
top: 5px;
height: 10px;
width: 10px;
}
.ngUnPinnedIcon {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABp0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuMTAw9HKhAAAAlElEQVQoU33PPQrCQBRF4fFnI2KfZVi5ARvdgo1l6mwmkCJVOgluwd5OwUoDtnoOxAei8cLXTN7cvEl/skCNDCMPfsUPO5zQwOHIDEvYtMURHe6wOVLgigvOePRyeDkyR4ln7wZ//7XfFBu8B23+aDJjrHGAwza7hjtHJvDmHg7b7Bru7AMjK7Rw2ObBVHDY5oGk9AKQNB2zy8MBTgAAAABJRU5ErkJggg==);
background-repeat: no-repeat;
position: absolute;
height: 10px;
width: 10px;
right: 5px;
top: 5px;
}
.ngColMenu {
right: 2px;
padding: 5px;
Expand Down Expand Up @@ -307,14 +335,12 @@
.ngCell {
overflow: hidden;
position: absolute;
border-right: 1px solid #d4d4d4;
border-left: 1px solid #d4d4d4;
top: 0;
bottom: 0;
background-color: inherit;
}
.ngCell:first-child {
border-left: 0;
.ngCell.pinned {
z-index: 1;
}
.ngCellText {
padding: 5px;
Expand All @@ -338,7 +364,7 @@
}
.ngCellElement:focus {
outline: 0;
background-color: #c9dde1;
background-color: #b3c4c7;
}
.ngRow.canSelect {
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion ng-grid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-grid",
"version": "2.0.6",
"version": "2.0.7",
"description": "__Contributors:__",
"main": "ng-grid.min.js",
"directories": {
Expand Down
35 changes: 19 additions & 16 deletions plugins/ng-grid-flexible-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ function ngGridFlexibleHeightPlugin (opts) {
var self = this;
self.grid = null;
self.scope = null;
self.init = function (scope, grid) {
self.init = function (scope, grid, services) {
self.domUtilityService = services.DomUtilityService;
self.grid = grid;
self.scope = scope;
var recalcHeightForData = function () { setTimeout(innerRecalcForData, 1); };
Expand All @@ -11,27 +12,29 @@ function ngGridFlexibleHeightPlugin (opts) {
var footerPanelSel = '.' + gridId + ' .ngFooterPanel';
var extraHeight = self.grid.$topPanel.height() + $(footerPanelSel).height();
var naturalHeight = self.grid.$canvas.height() + 1;
if (scope.baseViewportHeight == null || scope.baseViewportHeight === 0) {
scope.baseViewportHeight = self.grid.$viewport.height();
}
if (scope.baseViewportHeight > naturalHeight) {
if (opts != null) {
if (opts.minHeight != null && (naturalHeight + extraHeight) < opts.minHeight) {
naturalHeight = opts.minHeight - extraHeight - 2;
}
if (opts != null) {
if (opts.minHeight != null && (naturalHeight + extraHeight) < opts.minHeight) {
naturalHeight = opts.minHeight - extraHeight - 2;
}
self.grid.$viewport.css('height', (naturalHeight + 2) + 'px');
self.grid.$root.css('height', (naturalHeight + extraHeight + 2) + 'px');
}
self.grid.refreshDomSizes();

var newViewportHeight = naturalHeight + 2;
if (!self.scope.baseViewportHeight || self.scope.baseViewportHeight !== newViewportHeight) {
self.grid.$viewport.css('height', newViewportHeight + 'px');
self.grid.$root.css('height', (newViewportHeight + extraHeight) + 'px');
self.scope.baseViewportHeight = newViewportHeight;
self.domUtilityService.UpdateGridLayout(self.scope, self.grid);
}
};
scope.catHashKeys = function () {
self.scope.catHashKeys = function () {
var hash = '',
idx;
for (idx in scope.renderedRows) { hash += scope.renderedRows[idx].$$hashKey; }
for (idx in self.scope.renderedRows) {
hash += self.scope.renderedRows[idx].$$hashKey;
}
return hash;
};
scope.$watch('catHashKeys()', innerRecalcForData);
scope.$watch(grid.config.data, recalcHeightForData);
self.scope.$watch('catHashKeys()', innerRecalcForData);
self.scope.$watch(self.grid.config.data, recalcHeightForData);
};
}
Loading