-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[.NET][WPF][HTML] Fix toggle visibility spacing #2767
Merged
almedina-ms
merged 24 commits into
master
from
user/almedina-ms/WPFFixToggleVisibilitySpacing
May 15, 2019
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f507186
Fix visibility issue for columns
almedina-ms 63f4f65
Fix separator issue in WPF
almedina-ms 59ec280
Almost fix HTML renderer
almedina-ms e4afa05
Fix toggle visibility select actions
almedina-ms 1e4d4f1
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms fdf5745
Add test for checking initial state of separators
almedina-ms 483e620
Fix html for hiding separators in initial state
almedina-ms 92f5d34
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms f5de980
Fix logic in column separators
almedina-ms 549c969
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms b9578ac
Fix sample app to render tall cards
almedina-ms be2cbab
Fix PR Comments
almedina-ms 86e9139
Fix test files
almedina-ms cec3a75
Fix test results
almedina-ms 76533f4
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms aebaadc
Fix comments
almedina-ms 9943a69
Add test app results
almedina-ms 2689e51
Fix more comments
almedina-ms 38e45e4
Add results for new card
almedina-ms ced1f98
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms 4172253
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms 74c68a9
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
e2f15be
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
385cf0c
Merge branch 'master' into user/almedina-ms/WPFFixToggleVisibilitySpa…
almedina-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"height": "stretch", | ||
"version": "1.0", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "This test checks if showing an element inside a container that is hiding, will behave correctly by not showing the container", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "Container (id1)", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "Container", | ||
"id": "id1", | ||
"style": "emphasis", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"id": "id2", | ||
"text": "TextBlock (id2) inside a container", | ||
"wrap": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "Column (id3)", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "ColumnSet", | ||
"columns": [ | ||
{ | ||
"type": "Column", | ||
"spacing": "large", | ||
"id": "id3", | ||
"style": "emphasis", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"id": "id4", | ||
"text": "TextBlock (id4) inside a columnSet", | ||
"wrap": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"type": "Action.ToggleVisibility", | ||
"title": "Hide containers, show element", | ||
"targetElements": [ | ||
{ | ||
"elementId": "id1", | ||
"isVisible": false | ||
}, | ||
{ | ||
"elementId": "id2", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id3", | ||
"isVisible": false | ||
}, | ||
{ | ||
"elementId": "id4", | ||
"isVisible": true | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Action.ToggleVisibility", | ||
"title": "Show element, hide containers", | ||
"targetElements": [ | ||
{ | ||
"elementId": "id2", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id1", | ||
"isVisible": false | ||
}, | ||
{ | ||
"elementId": "id4", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id3", | ||
"isVisible": false | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Action.ToggleVisibility", | ||
"title": "Show everything", | ||
"targetElements": [ | ||
{ | ||
"elementId": "id1", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id2", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id3", | ||
"isVisible": true | ||
}, | ||
{ | ||
"elementId": "id4", | ||
"isVisible": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json", | ||
"type": "AdaptiveCard", | ||
"version": "1.0", | ||
"body": [ | ||
{ | ||
"type": "Image", | ||
"url": "https://adaptivecards.io/content/cats/1.png", | ||
"id": "id1", | ||
"isVisible": false, | ||
"selectAction": { | ||
"type": "Action.ToggleVisibility", | ||
"targetElements": [ | ||
"id2" | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Container", | ||
"id": "id2", | ||
"spacing": "large", | ||
"selectAction": { | ||
"type": "Action.ToggleVisibility", | ||
"targetElements": [ | ||
"id3" | ||
] | ||
}, | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "There's an image above this but the visibility is set to false. There shouldn't be a spacing above", | ||
"wrap": true | ||
}, | ||
{ | ||
"type": "Image", | ||
"url": "https://adaptivecards.io/content/cats/1.png" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "ColumnSet", | ||
"height": "stretch", | ||
"spacing": "default", | ||
"id": "id3", | ||
"selectAction": { | ||
"type": "Action.ToggleVisibility", | ||
"targetElements": [ | ||
"id1" | ||
] | ||
}, | ||
"columns": [ | ||
{ | ||
"type": "Column", | ||
"isVisible": false, | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "Column 1" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Column", | ||
"spacing": "large", | ||
"items": [ | ||
{ | ||
"type": "TextBlock", | ||
"wrap": true, | ||
"text": "This is the second column. There shouldn't be spacing before this" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"actions": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change null checks from "element != null" to "element" #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are right! my bad
In reply to: 280227777 [](ancestors = 280227777)