Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
0321103a
Commit
0321103a
authored
Apr 15, 2016
by
jgould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use header with
parent
1a198dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/ui/grid.js
src/ui/grid.js
+8
-3
No files found.
src/ui/grid.js
View file @
0321103a
...
...
@@ -310,14 +310,19 @@ morpheus.Grid.prototype = {
left
:
-
1000
,
top
:
-
1000
});
var
$row
=
$
(
'
<div class="slick-table"><div class="ui-widget-content slick-row"><div class="slick-cell selected"></div></div></div>
'
);
var
$row
=
$
(
'
<div class="slick-table">
'
+
'
<div class="ui-state-default slick-header-column slick-header-sortable ui-sortable-handle"></div>
'
+
'
<div class="ui-widget-content slick-row"><div class="slick-cell selected"></div></div>
'
+
'
</div>
'
);
var
$cell
=
$row
.
find
(
'
.slick-cell
'
);
var
$header
=
$row
.
find
(
'
.slick-header-column
'
);
$row
.
appendTo
(
$d
);
var
gridWidth
=
this
.
options
.
$el
.
width
();
var
maxWidth
=
Math
.
min
(
parseInt
(
gridWidth
/
2
),
400
);
var
getColumnWidth
=
function
(
column
)
{
$cell
.
html
(
column
.
name
);
var
w
=
Math
.
max
(
$cell
.
outerWidth
(),
4
);
var
w
=
$header
.
html
(
column
.
name
).
outerWidth
(
);
w
=
Math
.
max
(
$cell
.
outerWidth
(),
w
);
if
(
column
.
prototypeValue
)
{
$cell
.
html
(
column
.
prototypeValue
);
w
=
Math
.
max
(
$cell
.
outerWidth
(),
w
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment