2013-07-16 29 views
2

與RaphelJS建立一些地圖,並不斷看到在控制檯這個錯誤在Firefox:預期的值滿足解析preserveAspectRatio屬性

預期的值滿足解析preserveAspectRatio屬性。

按照MDN docs,至少,meetpreserveAspectRatio完全有效的值。另外,我沒有設置這個,所以一定是拉斐爾的做法。任何猜測是什麼造成的?

這並不妨礙目前的功能,但我寧願擺脫此警告。

回答

5

preserveAspectRatio的語法

Attribute preserveAspectRatio="[defer] <align> [<meetOrSlice>]" 

因此可選<meetOrSlice>meet RaphaelJS被設置preserveAspectRatio =「相遇」,因此Firefox的警告之前需要<align>的有效值。

+0

相關的問題:https://github.com/DmitryBaranovskiy/raphael/issues/649 –

+4

它在這個問題就解決了:https://github.com/DmitryBaranovskiy/raphael/commit/b8a34e5642994665fd482b5ddde403cf31d90a56下載最新版本。 – drinor

+0

感謝您的幫助。幹得好。 –