File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -237,10 +237,14 @@ - (id) initWithArguments:(NSDictionary *)arguments
237
237
[originalOpacityDict setObject: [self .container getAttribute: @" style" ] forKey: @" self-style" ];
238
238
[originalOpacityDict setObject: [(DOMElement *)[self .container parentNode ] getAttribute: @" style" ] forKey: @" parent-style" ];
239
239
self.originalOpacityAttributes = originalOpacityDict;
240
-
240
+
241
+ NSString *opacityResetString = @" ; opacity: 1.000 !important; -moz-opacity: 1 !important; filter: alpha(opacity=1) !important;" ;
242
+ NSString *newSelfStyleString = [[self .originalOpacityAttributes objectForKey: @" self-style" ] stringByAppendingString: opacityResetString];
243
+ NSString *newParentStyleString = [[self .originalOpacityAttributes objectForKey: @" parent-style" ] stringByAppendingString: opacityResetString];
244
+
241
245
[self .container setAttribute: @" wmode" value: @" opaque" ];
242
- [self .container setAttribute: @" style" value: @" opacity: 1.000 !important; -moz-opacity: 1 !important; filter: alpha(opacity=1) !important; " ];
243
- [(DOMElement *)[self .container parentNode ] setAttribute: @" style" value: @" opacity: 1.000 !important; -moz-opacity: 1 !important; filter: alpha(opacity=1) !important; " ];
246
+ [self .container setAttribute: @" style" value: newSelfStyleString ];
247
+ [(DOMElement *)[self .container parentNode ] setAttribute: @" style" value: newParentStyleString ];
244
248
}
245
249
246
250
return self;
You can’t perform that action at this time.
0 commit comments