Skip to content

Commit fdfafa3

Browse files
authored
Merge pull request #1174 from pnp/revert-1172-1685_pnpcore_flexlayout_position
Revert "fix depending on pnp.core fix for pnp/pnpcore#1685"
2 parents 56eacb2 + 453254d commit fdfafa3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectClientSidePages.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,10 +1039,10 @@ private static PnPCore.ControlFlexLayoutPosition GetControlFlexLayoutPosition(JO
10391039
{
10401040
return new PnPCore.ControlFlexLayoutPosition
10411041
{
1042-
XPos = json["flexibleLayoutPosition"]["lg"]["x"]?.Value<double>() ?? 0,
1043-
YPos = json["flexibleLayoutPosition"]["lg"]["y"]?.Value<double>() ?? 0,
1044-
Width = json["flexibleLayoutPosition"]["lg"]["w"]?.Value<double>() ?? 0,
1045-
Height = json["flexibleLayoutPosition"]["lg"]["h"]?.Value<double>() ?? 0,
1042+
XPos = json["flexibleLayoutPosition"]["lg"]["x"]?.Value<int>() ?? 0,
1043+
YPos = json["flexibleLayoutPosition"]["lg"]["y"]?.Value<int>() ?? 0,
1044+
Width = json["flexibleLayoutPosition"]["lg"]["w"]?.Value<int>() ?? 0,
1045+
Height = json["flexibleLayoutPosition"]["lg"]["h"]?.Value<int>() ?? 0,
10461046
WpGroupId = Guid.TryParse(json["flexibleLayoutPosition"]["groupId"]?.Value<string>(), out Guid wpgroupId) ? wpgroupId : null
10471047
};
10481048
}

0 commit comments

Comments
 (0)