Commit bd9a2ca
committed
Raise an error if mobile: true is specified along with size
Currently we automatically resize to mobile dimensions if `mobile:
true` is specified. This can be misleading if the user also passes
`height` and/or `width`, because those would be disregarded.
Raising an error makes the behaviour more obvious.1 parent 1560ecd commit bd9a2ca
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
287 | 303 | | |
288 | 304 | | |
289 | 305 | | |
0 commit comments