Problem/motivation

Config schema supports integers but not floating point numbers. See https://drupal.org/node/1905070 for the docs and fully type list. The responsive preview module (#1741498: Add a responsive preview bar to Drupal core) would need a floating point number expressed for dots per pixel which for a Google Nexus is 1.325 for example.

Proposed solution

Wire in support for floating point numbers. Should hopefully be easy with typed data already supporting this(?)

Files: 
CommentFileSizeAuthor
#2 float-type-schema.patch557 bytesGábor Hojtsy
PASSED: [[SimpleTest]]: [MySQL] 58,087 pass(es). View

Comments

Gábor Hojtsy’s picture

Issue tags: +Spark
Gábor Hojtsy’s picture

Status: Active » Needs review
FileSize
557 bytes
PASSED: [[SimpleTest]]: [MySQL] 58,087 pass(es). View

Initial patch.

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me...

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x.

Wim Leers’s picture

Issue tags: -sprint

Go team D8MI! :)

Gábor Hojtsy’s picture

Added new float support in the docs at https://drupal.org/node/1905070
Added this to the change notice at https://drupal.org/node/1905120

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Add responsive preview issue reference