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
f2a2c5f2
Commit
f2a2c5f2
authored
Aug 24, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete align to string
delete string to align
parent
f7df9be0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
28 deletions
+4
-28
cell/api.js
cell/api.js
+2
-3
cell/utils/utils.js
cell/utils/utils.js
+0
-23
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+2
-2
No files found.
cell/api.js
View file @
f2a2c5f2
...
...
@@ -2949,12 +2949,11 @@ var editor;
};
spreadsheet_api
.
prototype
.
asc_setCellAlign
=
function
(
align
)
{
var
ha
=
AscCommonExcel
.
horizontalAlignFromString
(
align
);
var
ws
=
this
.
wb
.
getWorksheet
();
if
(
ws
.
objectRender
.
selectedGraphicObjectsExists
()
&&
ws
.
objectRender
.
controller
.
setCellAlign
)
{
ws
.
objectRender
.
controller
.
setCellAlign
(
ha
);
ws
.
objectRender
.
controller
.
setCellAlign
(
align
);
}
else
{
this
.
wb
.
getWorksheet
().
setSelectionInfo
(
"
a
"
,
ha
);
this
.
wb
.
getWorksheet
().
setSelectionInfo
(
"
a
"
,
align
);
this
.
wb
.
restoreFocus
();
}
};
...
...
cell/utils/utils.js
View file @
f2a2c5f2
...
...
@@ -71,27 +71,6 @@
};
function
horizontalAlignFromString
(
val
)
{
var
ha
=
null
;
switch
(
val
)
{
case
"
left
"
:
ha
=
AscCommon
.
align_Left
;
break
;
case
"
right
"
:
ha
=
AscCommon
.
align_Right
;
break
;
case
"
center
"
:
ha
=
AscCommon
.
align_Center
;
break
;
case
"
justify
"
:
ha
=
AscCommon
.
align_Justify
;
break
;
}
return
ha
;
}
function
horizontalAlignToString
(
val
)
{
var
ha
=
"
none
"
;
switch
(
val
)
{
case
AscCommon
.
align_Left
:
ha
=
"
left
"
;
break
;
case
AscCommon
.
align_Right
:
ha
=
"
right
"
;
break
;
case
AscCommon
.
align_Center
:
ha
=
"
center
"
;
break
;
case
AscCommon
.
align_Justify
:
ha
=
"
justify
"
;
break
;
}
return
ha
;
}
function
applyFunction
(
callback
)
{
if
(
kFunctionL
===
typeof
callback
)
{
callback
.
apply
(
null
,
Array
.
prototype
.
slice
.
call
(
arguments
,
1
));
...
...
@@ -2331,8 +2310,6 @@
window
[
'
AscCommonExcel
'
]
=
window
[
'
AscCommonExcel
'
]
||
{};
window
[
"
AscCommonExcel
"
].
recalcType
=
recalcType
;
window
[
"
AscCommonExcel
"
].
applyFunction
=
applyFunction
;
window
[
"
AscCommonExcel
"
].
horizontalAlignFromString
=
horizontalAlignFromString
;
window
[
"
AscCommonExcel
"
].
horizontalAlignToString
=
horizontalAlignToString
;
window
[
"
Asc
"
].
typeOf
=
typeOf
;
window
[
"
Asc
"
].
lastIndexOf
=
lastIndexOf
;
window
[
"
Asc
"
].
search
=
search
;
...
...
cell/view/WorksheetView.js
View file @
f2a2c5f2
...
...
@@ -6799,7 +6799,7 @@
cell_info
.
text
=
c
.
getValueForEdit
();
cell_info
.
halign
=
AscCommonExcel
.
horizontalAlignToString
(
align
.
getAlignHorizontal
()
);
cell_info
.
halign
=
align
.
getAlignHorizontal
(
);
cell_info
.
valign
=
align
.
getAlignVertical
();
var
tablePartsOptions
=
selectionRange
.
isSingleRange
()
?
...
...
@@ -7005,7 +7005,7 @@
}
objectInfo
.
halign
=
AscCommonExcel
.
horizontalAlignToString
(
horAlign
)
;
objectInfo
.
halign
=
horAlign
;
objectInfo
.
valign
=
vertAlign
;
objectInfo
.
angle
=
angle
;
...
...
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