Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
b2ed4a27
Commit
b2ed4a27
authored
May 16, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change function af_drawCurrentButton
parent
319aa274
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+20
-18
No files found.
cell/view/WorksheetView.js
View file @
b2ed4a27
...
...
@@ -12555,18 +12555,7 @@
continue
;
}
var
width
=
13
;
var
height
=
13
;
var
rowHeight
=
ws
.
rows
[
row
].
height
;
if
(
rowHeight
<
height
)
{
width
=
width
*
(
rowHeight
/
height
);
height
=
rowHeight
;
}
var
x1
=
ws
.
cols
[
col
].
left
+
ws
.
cols
[
col
].
width
-
width
-
0.5
;
var
y1
=
ws
.
rows
[
row
].
top
+
ws
.
rows
[
row
].
height
-
height
-
0.5
;
t
.
af_drawCurrentButton
(
x1
-
offsetX
,
y1
-
offsetY
,
{
isSortState
:
isSortState
,
isSetFilter
:
isSetFilter
,
row
:
row
,
col
:
col
});
t
.
af_drawCurrentButton
(
offsetX
,
offsetY
,
{
isSortState
:
isSortState
,
isSetFilter
:
isSetFilter
,
row
:
row
,
col
:
col
});
}
}
}
...
...
@@ -12586,12 +12575,25 @@
return
true
;
};
WorksheetView
.
prototype
.
af_drawCurrentButton
=
function
(
x1
,
y1
,
props
)
{
//TODO пересмотреть масштабирование!!!
WorksheetView
.
prototype
.
af_drawCurrentButton
=
function
(
offsetX
,
offsetY
,
props
)
{
var
t
=
this
;
//TODO пересмотреть масштабирование!!!
var
isApplyAutoFilter
=
props
.
isSetFilter
;
var
isApplySortState
=
props
.
isSortState
;
var
row
=
props
.
row
;
var
col
=
props
.
col
;
var
width1
=
13
;
var
height1
=
13
;
var
rowHeight1
=
t
.
rows
[
row
].
height
;
if
(
rowHeight1
<
height1
)
{
width1
=
width1
*
(
rowHeight1
/
height1
);
height1
=
rowHeight1
;
}
var
t
=
this
;
var
x1
=
t
.
cols
[
col
].
left
+
t
.
cols
[
col
].
width
-
width1
-
0.5
-
offsetX
;
var
y1
=
t
.
rows
[
row
].
top
+
t
.
rows
[
row
].
height
-
height1
-
0.5
-
offsetY
;
var
width_1px
=
t
.
width_1px
;
var
height_1px
=
t
.
height_1px
;
...
...
@@ -12599,8 +12601,8 @@
var
width
=
15
*
height_1px
;
var
m_oColor
=
new
CColor
(
120
,
120
,
120
);
var
rowHeight
=
t
.
rows
[
props
.
row
].
height
;
var
colWidth
=
t
.
cols
[
props
.
col
].
width
;
var
rowHeight
=
t
.
rows
[
row
].
height
;
var
colWidth
=
t
.
cols
[
col
].
width
;
var
scaleIndex
=
1
;
var
scaleFactor
=
t
.
drawingCtx
.
scaleFactor
;
...
...
@@ -12696,7 +12698,7 @@
t
.
drawingCtx
.
ctx
.
lineTo
(
x
+
i
,
y
+
0.5
+
(
heightTriangle
-
i
)
-
diffY
);
}
t
.
drawingCtx
.
setLineWidth
(
t
.
width_1px
)
t
.
drawingCtx
.
setLineWidth
(
t
.
width_1px
)
;
t
.
drawingCtx
.
setStrokeStyle
(
m_oColor
);
t
.
drawingCtx
.
stroke
();
};
...
...
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