In #2782885: No indication what page element is being configured with Outside In we introduced:
instance.options.data.dialogOptions = {outsideInActiveEditableId: $(instance.element).parents('.outside-in-editable').attr('id')};
This effectively wipes out any options that were added in link via:
$link['attributes'][''data-dialog-options']
One common option that is passed is width. So this would stop any other module that wanted to use the off-canvas tray at a different width.
This would be bring problem for #2784443: Move off-canvas functionality from Settings tray module into drupal.dialog.ajax library so that other modules can use it
Here is patch that fixes that and also updates OffCanvasTest to test that the width is respected.
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-2804639-5-9.txt | 815 bytes | tedbow |
#9 | 2804639-9.patch | 2.88 KB | tedbow |
#5 | interdiff-2804639-3-5.txt | 658 bytes | tedbow |
#5 | 2804639-5.patch | 2.88 KB | tedbow |
#3 | offcanvas_width.patch | 2.81 KB | tedbow |
Comments
Comment #2
tedbowBumping to major because it will stop #2784495: Normalize block place and outside-in experiences
Comment #3
tedbowComment #4
GrandmaGlassesRopeManCan we add some documentation around what's happening here.
Comment #5
tedbowAdded comment re #4
Comment #6
tedbowComment #7
GrandmaGlassesRopeMan@tedbow
This looks good to me.
Comment #8
catchMinor but why stristr() - can we not determine the case? Could use a comment possibly.
Comment #9
tedbow@catch no reason just mistake on my part. thanks for review.
Fixed.
Comment #10
GrandmaGlassesRopeManComment #11
alexpottCommitted and pushed 552513f to 8.3.x and aa939b3 to 8.2.x. Thanks!
Comment #15
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)