Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
Masonry
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Jonas Budelmann
12 years ago
Commit
a73fdd581dc8c31cd2e3409e288d55e16dfae645
1 parent
4e479316
change float formats from %f to %g
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
Masonry/NSLayoutConstraint+MASDebugAdditions.m
Masonry/NSLayoutConstraint+MASDebugAdditions.m
View file @
a73fdd5
...
...
@@ -92,14 +92,14 @@
}
if
(
self
.
multiplier
!=
1
)
{
[
description
appendFormat
:
@" * %
f
"
,
self
.
multiplier
];
[
description
appendFormat
:
@" * %
g
"
,
self
.
multiplier
];
}
if
(
self
.
constant
)
{
if
(
self
.
secondAttribute
==
NSLayoutAttributeNotAnAttribute
)
{
[
description
appendFormat
:
@" %
f
"
,
self
.
constant
];
[
description
appendFormat
:
@" %
g
"
,
self
.
constant
];
}
else
{
[
description
appendFormat
:
@" %@ %
f
"
,
(
self
.
constant
<
0
?
@"-"
:
@"+"
),
ABS
(
self
.
constant
)];
[
description
appendFormat
:
@" %@ %
g
"
,
(
self
.
constant
<
0
?
@"-"
:
@"+"
),
ABS
(
self
.
constant
)];
}
}
...
...
Please
register
or
login
to post a comment